Update CSS parser tests to preserve CRLF where needed
This commit is contained in:
parent
65409a98d9
commit
8319bd83b3
1 changed files with 4 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
|
|||
kind: 'comment',
|
||||
value: `!
|
||||
* License #2
|
||||
`,
|
||||
`.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'),
|
||||
},
|
||||
])
|
||||
})
|
||||
|
|
@ -368,7 +368,7 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
|
|||
background-color: red;
|
||||
/* A comment */
|
||||
content: 'Hello, world!';
|
||||
}`,
|
||||
}`.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'),
|
||||
important: false,
|
||||
},
|
||||
])
|
||||
|
|
@ -396,7 +396,7 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
|
|||
background-color: red;
|
||||
/* A comment ; */
|
||||
content: 'Hello, world!';
|
||||
}`,
|
||||
}`.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'),
|
||||
important: false,
|
||||
},
|
||||
{
|
||||
|
|
@ -406,7 +406,7 @@ describe.each(['Unix', 'Windows'])('Line endings: %s', (lineEndings) => {
|
|||
background-color: red;
|
||||
/* A comment } */
|
||||
content: 'Hello, world!';
|
||||
}`,
|
||||
}`.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'),
|
||||
important: false,
|
||||
},
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue