Skip to content

Commit

Permalink
fix Windows test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Jan 25, 2018
1 parent acfb79d commit a1584c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ISC License (ISC)
Copyright 2017 Shinnosuke Watanabe
Copyright 2017 - 2018 Shinnosuke Watanabe

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ It finds the first instance of the given executable in the [PATH](http://pubs.op

## License

[ISC License](./LICENSE) © 2017 Shinnosuke Watanabe
[ISC License](./LICENSE) © 2017 - 2018 Shinnosuke Watanabe
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const {join, resolve} = require('path');
const {join} = require('path');

const realExecutablePath = require('.');
const test = require('tape');
Expand All @@ -10,7 +10,7 @@ process.env.PATH = join('node_modules', '.bin');
test('realExecutablePath()', async t => {
t.equal(
await realExecutablePath('eslint'),
resolve('node_modules/eslint/bin/eslint.js'),
join(__dirname, 'node_modules', ...process.platform === 'win32' ? ['.bin', 'eslint.CMD'] : ['eslint', 'bin', 'eslint.js']),
'should resolve an executable path.'
);

Expand Down

0 comments on commit a1584c8

Please sign in to comment.