From fb77b3135b0405e523edb4044e457ea7930c06e2 Mon Sep 17 00:00:00 2001 From: Gil Tayar Date: Wed, 20 Jan 2021 19:03:16 +0200 Subject: [PATCH] fix test for windows --- test/integration/esm.spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/esm.spec.js b/test/integration/esm.spec.js index 733190d55b..f1de91dfb5 100644 --- a/test/integration/esm.spec.js +++ b/test/integration/esm.spec.js @@ -45,7 +45,10 @@ describe('esm', function() { const err = await runMochaAsync(fixture, args, {stdio: 'pipe'}).catch( err => err ); - expect(err.output, 'to contain', 'SyntaxError').and('to contain', fixture); + expect(err.output, 'to contain', 'SyntaxError').and( + 'to contain', + 'esm-syntax-error.fixture.mjs' + ); }); it('should recognize esm files ending with .js due to package.json type flag', function(done) {