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>
This commit is contained in:
parent
1d7fbabaef
commit
6af889615d
@ -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…
x
Reference in New Issue
Block a user