(string: string)
| 5 | |
| 6 | describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => { |
| 7 | function parse(string: string) { |
| 8 | return CSS.parse(string.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n')) |
| 9 | } |
| 10 | |
| 11 | function parseWithLoc(string: string) { |
| 12 | return CSS.parse(string.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'), { |