We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c3424 commit ee7a2dcCopy full SHA for ee7a2dc
test/library.spec.js
@@ -332,6 +332,6 @@ describe('file path', function() {
332
it('should return the correct file path', function() {
333
expect(utils.getFilePath({ fileName: 'file.json' })).to.be.equal(path.resolve(process.cwd(), 'file.json'));
334
expect(utils.getFilePath({})).to.be.equal(path.resolve(process.cwd(), 'package.json'));
335
- expect(utils.getFilePath({ fileName: 'c:\\test\\test.js' })).to.be.equal('c:\\test\\test.js');
+ expect(utils.getFilePath({ fileName: path.resolve(__dirname) })).to.be.equal(path.resolve(__dirname));
336
})
337
0 commit comments