Skip to content

Commit

Permalink
fixup: Windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed May 14, 2020
1 parent 1471091 commit 112c552
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/parallel/test-directory-import.js
Expand Up @@ -3,8 +3,12 @@
require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const { pathToFileURL } = require('url');

{
assert.rejects(import('./'), /ERR_UNSUPPORTED_DIR_IMPORT/);
assert.rejects(import(fixtures.path('packages', 'main')), /Did you mean/);
assert.rejects(
import(pathToFileURL(fixtures.path('packages', 'main'))),
/Did you mean/,
);
}

0 comments on commit 112c552

Please sign in to comment.