Improve search test

Was failing on Windows
This commit is contained in:
Daniel Imms
2020-09-10 07:38:14 -07:00
parent 8f7295b8a2
commit 883ddba934
@@ -112,7 +112,8 @@ describe('Search Tests', function(): void {
before(async () => {
const rawFixture = await new Promise<Buffer>(r => readFile(resolve(__dirname, '../fixtures/issue-2444'), (err, data) => r(data)));
fixture = rawFixture.toString()
.replace(/\n/g, '\\n\\r')
.replace(/\n/g, '\\n')
.replace(/\r/g, '\\r')
.replace(/'/g, '\\\'');
});
it('should find all occurrences using findNext', async () => {