@@ -11,9 +11,9 @@ describe('util/yaml', () => {
11
11
it ( 'should parse content with single document' , ( ) => {
12
12
expect (
13
13
parseYaml ( codeBlock `
14
- myObject:
15
- aString: value
16
- ` ) ,
14
+ myObject:
15
+ aString: value
16
+ ` ) ,
17
17
) . toEqual ( [
18
18
{
19
19
myObject : {
@@ -27,9 +27,9 @@ describe('util/yaml', () => {
27
27
expect (
28
28
parseYaml (
29
29
codeBlock `
30
- myObject:
31
- aString: value
32
- ` ,
30
+ myObject:
31
+ aString: value
32
+ ` ,
33
33
{
34
34
customSchema : z . object ( {
35
35
myObject : z . object ( {
@@ -50,11 +50,11 @@ describe('util/yaml', () => {
50
50
it ( 'should parse content with multiple documents' , ( ) => {
51
51
expect (
52
52
parseYaml ( codeBlock `
53
- myObject:
54
- aString: value
55
- ---
56
- foo: bar
57
- ` ) ,
53
+ myObject:
54
+ aString: value
55
+ ---
56
+ foo: bar
57
+ ` ) ,
58
58
) . toEqual ( [
59
59
{
60
60
myObject : {
@@ -71,12 +71,12 @@ describe('util/yaml', () => {
71
71
expect (
72
72
parseYaml (
73
73
codeBlock `
74
- myObject:
75
- aString: foo
76
- ---
77
- myObject:
78
- aString: bar
79
- ` ,
74
+ myObject:
75
+ aString: foo
76
+ ---
77
+ myObject:
78
+ aString: bar
79
+ ` ,
80
80
{
81
81
customSchema : z . object ( {
82
82
myObject : z . object ( {
@@ -103,11 +103,11 @@ describe('util/yaml', () => {
103
103
expect ( ( ) =>
104
104
parseYaml (
105
105
codeBlock `
106
- myObject:
107
- aString: foo
108
- ---
109
- aString: bar
110
- ` ,
106
+ myObject:
107
+ aString: foo
108
+ ---
109
+ aString: bar
110
+ ` ,
111
111
{
112
112
customSchema : z . object ( {
113
113
myObject : z . object ( {
@@ -123,11 +123,11 @@ describe('util/yaml', () => {
123
123
expect ( ( ) =>
124
124
parseYaml (
125
125
codeBlock `
126
- myObject:
127
- aString: foo
128
- ---
129
- aString: bar
130
- ` ,
126
+ myObject:
127
+ aString: foo
128
+ ---
129
+ aString: bar
130
+ ` ,
131
131
{
132
132
customSchema : z . object ( {
133
133
myObject : z . object ( {
@@ -144,11 +144,11 @@ describe('util/yaml', () => {
144
144
expect (
145
145
parseYaml (
146
146
codeBlock `
147
- myObject:
148
- aString: foo
149
- ---
150
- aString: bar
151
- ` ,
147
+ myObject:
148
+ aString: foo
149
+ ---
150
+ aString: bar
151
+ ` ,
152
152
{
153
153
customSchema : z . object ( {
154
154
myObject : z . object ( {
@@ -171,11 +171,11 @@ describe('util/yaml', () => {
171
171
expect (
172
172
parseYaml (
173
173
codeBlock `
174
- myObject:
175
- aString: {{ value }}
176
- ---
177
- foo: {{ foo.bar }}
178
- ` ,
174
+ myObject:
175
+ aString: {{ value }}
176
+ ---
177
+ foo: {{ foo.bar }}
178
+ ` ,
179
179
{ removeTemplates : true } ,
180
180
) ,
181
181
) . toEqual ( [
@@ -199,9 +199,9 @@ describe('util/yaml', () => {
199
199
it ( 'should parse content with single document' , ( ) => {
200
200
expect (
201
201
parseSingleYaml ( codeBlock `
202
- myObject:
203
- aString: value
204
- ` ) ,
202
+ myObject:
203
+ aString: value
204
+ ` ) ,
205
205
) . toEqual ( {
206
206
myObject : {
207
207
aString : 'value' ,
@@ -212,13 +212,13 @@ describe('util/yaml', () => {
212
212
it ( 'should parse invalid content using strict=false' , ( ) => {
213
213
expect (
214
214
parseSingleYaml ( codeBlock `
215
- version: '2.1'
215
+ version: '2.1'
216
216
217
- services:
218
- rtl_433:
219
- image: ubuntu:oracular-20240918
220
- # inserting a space before the hash on the next line makes Renovate work.
221
- command: "echo some text"# a comment
217
+ services:
218
+ rtl_433:
219
+ image: ubuntu:oracular-20240918
220
+ # inserting a space before the hash on the next line makes Renovate work.
221
+ command: "echo some text"# a comment
222
222
` ) ,
223
223
) . not . toBeNull ( ) ;
224
224
} ) ;
@@ -227,9 +227,9 @@ services:
227
227
expect (
228
228
parseSingleYaml (
229
229
codeBlock `
230
- myObject:
231
- aString: value
232
- ` ,
230
+ myObject:
231
+ aString: value
232
+ ` ,
233
233
{
234
234
customSchema : z . object ( {
235
235
myObject : z . object ( {
@@ -249,8 +249,8 @@ services:
249
249
expect ( ( ) =>
250
250
parseSingleYaml (
251
251
codeBlock `
252
- myObject: foo
253
- ` ,
252
+ myObject: foo
253
+ ` ,
254
254
{
255
255
customSchema : z . object ( {
256
256
myObject : z . object ( {
@@ -265,25 +265,25 @@ services:
265
265
it ( 'should parse content with multiple documents' , ( ) => {
266
266
expect ( ( ) =>
267
267
parseSingleYaml ( codeBlock `
268
- myObject:
269
- aString: value
270
- ---
271
- foo: bar
272
- ` ) ,
268
+ myObject:
269
+ aString: value
270
+ ---
271
+ foo: bar
272
+ ` ) ,
273
273
) . toThrow ( ) ;
274
274
} ) ;
275
275
276
276
it ( 'should parse content with template' , ( ) => {
277
277
expect (
278
278
parseSingleYaml (
279
279
codeBlock `
280
- myObject:
281
- aString: {{value}}
282
- {% if test.enabled %}
283
- myNestedObject:
284
- aNestedString: {{value}}
285
- {% endif %}
286
- ` ,
280
+ myObject:
281
+ aString: {{value}}
282
+ {% if test.enabled %}
283
+ myNestedObject:
284
+ aNestedString: {{value}}
285
+ {% endif %}
286
+ ` ,
287
287
{ removeTemplates : true } ,
288
288
) ,
289
289
) . toEqual ( {
@@ -300,10 +300,10 @@ services:
300
300
expect (
301
301
parseSingleYaml (
302
302
codeBlock `
303
- myObject:
304
- aString: value
305
- aStringWithTag: !reset null
306
- ` ,
303
+ myObject:
304
+ aString: value
305
+ aStringWithTag: !reset null
306
+ ` ,
307
307
{ removeTemplates : true } ,
308
308
) ,
309
309
) . toEqual ( {
0 commit comments