Skip to content

Commit e44835e

Browse files
committed
Make line endings consistent?
1 parent 2e28146 commit e44835e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/ql-vscode/test/pure-tests/remote-queries/markdown-generation/interpreted-results/markdown-generation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ describe('markdown generation', async function() {
2323
const expectedTestOutput1 = await fs.readFile(path.join(__dirname, 'data/results-repo1.md'), 'utf8');
2424
const expectedTestOutput2 = await fs.readFile(path.join(__dirname, 'data/results-repo2.md'), 'utf8');
2525

26-
// Check that markdown output is correct
27-
expect(markdownFile1.join('\n')).to.equal(expectedTestOutput1);
28-
expect(markdownFile2.join('\n')).to.equal(expectedTestOutput2);
26+
// Check that markdown output is correct, after making line endings consistent
27+
expect(markdownFile1.join('\n')).to.equal(expectedTestOutput1.replace(/\r?\n/g, '\n'));
28+
expect(markdownFile2.join('\n')).to.equal(expectedTestOutput2.replace(/\r?\n/g, '\n'));
2929
});
3030
});

0 commit comments

Comments
 (0)