@@ -11,14 +11,14 @@ import { invalidChangeVersion } from '../invalid-change-version.mjs';
1111describe ( 'invalidChangeVersion' , ( ) => {
1212 it ( 'should not report if all change versions are non-empty' , ( ) => {
1313 const yamlContent = dedent `
14- <!-- YAML
15- changes:
16- - version:
17- - v15.7.0
18- - v14.18.0
19- - version: v6.4.0
20- - version: v5.0.0
21- -->` ;
14+ <!-- YAML
15+ changes:
16+ - version:
17+ - v15.7.0
18+ - v14.18.0
19+ - version: v6.4.0
20+ - version: v5.0.0
21+ -->`;
2222
2323 const context = {
2424 tree : {
@@ -41,11 +41,11 @@ changes:
4141
4242 it ( 'should report an issue if a change version is missing' , ( ) => {
4343 const yamlContent = dedent `
44- <!-- YAML
45- changes:
46- - version:
47- - pr-url: https://github.com/nodejs/node/pull/1
48- -->` ;
44+ <!-- YAML
45+ changes:
46+ - version:
47+ - pr-url: https://github.com/nodejs/node/pull/1
48+ -->`;
4949
5050 const context = {
5151 tree : {
@@ -124,14 +124,14 @@ changes:
124124
125125 it ( 'should not report if all change versions are valid' , ( ) => {
126126 const yamlContent = dedent `
127- <!-- YAML
128- changes:
129- - version:
130- - v15.7.0
131- - v14.18.0
132- - version: v6.4.0
133- - version: v5.0.0
134- -->` ;
127+ <!-- YAML
128+ changes:
129+ - version:
130+ - v15.7.0
131+ - v14.18.0
132+ - version: v6.4.0
133+ - version: v5.0.0
134+ -->`;
135135
136136 const context = {
137137 tree : {
@@ -154,14 +154,14 @@ changes:
154154
155155 it ( 'should report an issue if a change version is invalid' , ( ) => {
156156 const yamlContent = dedent `
157- <!-- YAML
158- changes:
159- - version:
160- - v13.9.0
161- - INVALID_VERSION
162- - version: v6.4.0
163- - version: v5.0.0
164- -->` ;
157+ <!-- YAML
158+ changes:
159+ - version:
160+ - v13.9.0
161+ - INVALID_VERSION
162+ - version: v6.4.0
163+ - version: v5.0.0
164+ -->`;
165165
166166 const context = {
167167 tree : {
@@ -198,14 +198,14 @@ changes:
198198
199199 it ( 'should report an issue if a change version contains a REPLACEME and a version' , ( ) => {
200200 const yamlContent = dedent `
201- <!-- YAML
202- changes:
203- - version:
204- - v24.0.0
205- - REPLACEME
206- - version: v6.4.0
207- - version: v5.0.0
208- -->` ;
201+ <!-- YAML
202+ changes:
203+ - version:
204+ - v24.0.0
205+ - REPLACEME
206+ - version: v6.4.0
207+ - version: v5.0.0
208+ -->`;
209209
210210 const context = {
211211 tree : {
@@ -242,11 +242,11 @@ changes:
242242
243243 it ( 'should report an issue if changes is not a sequence' , ( ) => {
244244 const yamlContent = dedent `
245- <!-- YAML
246- changes:
247- abc:
248- def:
249- -->` ;
245+ <!-- YAML
246+ changes:
247+ abc:
248+ def:
249+ -->`;
250250
251251 const context = {
252252 tree : {
@@ -283,12 +283,12 @@ changes:
283283
284284 it ( 'should report an issue if version is not a mapping' , ( ) => {
285285 const yamlContent = dedent `
286- <!-- YAML
287- changes:
288- version:
289- - abc
290- - def
291- -->` ;
286+ <!-- YAML
287+ changes:
288+ version:
289+ - abc
290+ - def
291+ -->`;
292292
293293 const context = {
294294 tree : {
@@ -325,10 +325,10 @@ changes:
325325
326326 it ( "should skip validations if yaml root node isn't a mapping" , ( ) => {
327327 const yamlContent = dedent `
328- <!-- YAML
329- - abc
330- - def
331- -->` ;
328+ <!-- YAML
329+ - abc
330+ - def
331+ -->`;
332332
333333 const context = {
334334 tree : {
@@ -354,9 +354,9 @@ changes:
354354
355355 it ( 'should skip validations if changes node is missing' , ( ) => {
356356 const yamlContent = dedent `
357- <!-- YAML
358- added: v0.1.91
359- -->` ;
357+ <!-- YAML
358+ added: v0.1.91
359+ -->`;
360360
361361 const context = {
362362 tree : {
0 commit comments