Improve search test
Was failing on Windows
This commit is contained in:
@@ -112,7 +112,8 @@ describe('Search Tests', function(): void {
|
|||||||
before(async () => {
|
before(async () => {
|
||||||
const rawFixture = await new Promise<Buffer>(r => readFile(resolve(__dirname, '../fixtures/issue-2444'), (err, data) => r(data)));
|
const rawFixture = await new Promise<Buffer>(r => readFile(resolve(__dirname, '../fixtures/issue-2444'), (err, data) => r(data)));
|
||||||
fixture = rawFixture.toString()
|
fixture = rawFixture.toString()
|
||||||
.replace(/\n/g, '\\n\\r')
|
.replace(/\n/g, '\\n')
|
||||||
|
.replace(/\r/g, '\\r')
|
||||||
.replace(/'/g, '\\\'');
|
.replace(/'/g, '\\\'');
|
||||||
});
|
});
|
||||||
it('should find all occurrences using findNext', async () => {
|
it('should find all occurrences using findNext', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user