Browse Source

test: replace common.fixturesDir with fixtures

PR-URL: https://github.com/nodejs/node/pull/15806
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
v9.x-staging
Chris Jimenez 7 years ago
committed by Rich Trott
parent
commit
6af889615d
  1. 3
      test/parallel/test-fs-whatwg-url.js

3
test/parallel/test-fs-whatwg-url.js

@ -1,6 +1,7 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
const assert = require('assert');
const path = require('path');
const fs = require('fs');
@ -15,7 +16,7 @@ function pathToFileURL(p) {
return new URL(`file://${p}`);
}
const p = path.resolve(common.fixturesDir, 'a.js');
const p = path.resolve(fixtures.fixturesDir, 'a.js');
const url = pathToFileURL(p);
assert(url instanceof URL);

Loading…
Cancel
Save