|
1 | | -/* eslint-disable @typescript-eslint/unbound-method, sonarjs/no-commented-code */ |
| 1 | +/* eslint-disable @typescript-eslint/unbound-method */ |
2 | 2 |
|
3 | 3 | // eslint-disable-next-line unicorn/prefer-node-protocol -- mocked |
4 | 4 | import fsMock_ from 'fs'; |
@@ -131,7 +131,7 @@ const tests: Array<{ |
131 | 131 | { |
132 | 132 | title: 'without a filePath and no config', |
133 | 133 | input: { text: defaultInputText() }, |
134 | | - output: prettierLastOutput(), |
| 134 | + output: noopOutput(), |
135 | 135 | }, |
136 | 136 | { |
137 | 137 | title: 'inferring bracketSpacing', |
@@ -187,7 +187,7 @@ const tests: Array<{ |
187 | 187 | languageOptions: { globals: { windows: 'writable' } }, |
188 | 188 | }, |
189 | 189 | }, |
190 | | - output: prettierLastOutput(), |
| 190 | + output: noopOutput(), |
191 | 191 | }, |
192 | 192 | { |
193 | 193 | title: 'CSS example', |
@@ -284,7 +284,7 @@ const tests: Array<{ |
284 | 284 | }, |
285 | 285 | }, |
286 | 286 | }, |
287 | | - output: "var foo = { bar: 'baz' };", |
| 287 | + output: 'var foo = { bar: "baz" };', |
288 | 288 | }, |
289 | 289 | ]; |
290 | 290 |
|
@@ -524,14 +524,14 @@ function defaultInputText() { |
524 | 524 | `; |
525 | 525 | } |
526 | 526 |
|
527 | | -// function noopOutput() { |
528 | | -// return ` |
529 | | -// function foo() { |
530 | | -// // stuff |
531 | | -// console.log("Hello world!", and, stuff); |
532 | | -// } |
533 | | -// `; |
534 | | -// } |
| 527 | +function noopOutput() { |
| 528 | + return ` |
| 529 | + function foo() { |
| 530 | + // stuff |
| 531 | + console.log("Hello world!", and, stuff); |
| 532 | + } |
| 533 | + `; |
| 534 | +} |
535 | 535 |
|
536 | 536 | function defaultOutput() { |
537 | 537 | return ` |
|
0 commit comments