File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 31
31
"@aws-cdk/cdk" : " ^0.19.0" ,
32
32
"fs-extra" : " ^7.0.0" ,
33
33
"source-map-support" : " ^0.5.6" ,
34
- "yaml" : " ^1.0.1 "
34
+ "yaml" : " ^1.1.0 "
35
35
},
36
36
"repository" : {
37
37
"url" : " https://github.com/awslabs/aws-cdk.git" ,
Original file line number Diff line number Diff line change 63
63
"request" : " ^2.83.0" ,
64
64
"semver" : " ^5.5.0" ,
65
65
"source-map-support" : " ^0.5.6" ,
66
- "yaml" : " ^1.0.1" ,
66
+ "table" : " ^5.1.0" ,
67
+ "yaml" : " ^1.1.0" ,
67
68
"yargs" : " ^9.0.1"
68
69
},
69
70
"repository" : {
Original file line number Diff line number Diff line change 1
1
import { Test } from 'nodeunit' ;
2
- import { toYAML } from '../lib/serialize' ;
2
+ import { fromYAML , toYAML } from '../lib/serialize' ;
3
3
4
4
// Preferred quote of the YAML library
5
5
const q = '"' ;
@@ -64,4 +64,18 @@ export = {
64
64
65
65
test . done ( ) ;
66
66
} ,
67
+
68
+ 'validate emission of very long lines' ( test : Test ) {
69
+ const template = {
70
+ Field : ' very long line that starts with a space. very long line that starts with a space. start on a new line'
71
+ } ;
72
+
73
+ const output = toYAML ( template ) ;
74
+
75
+ const parsed = fromYAML ( output ) ;
76
+
77
+ test . deepEqual ( template , parsed ) ;
78
+
79
+ test . done ( ) ;
80
+ }
67
81
} ;
You can’t perform that action at this time.
0 commit comments