UNPKG
lint-changed
Version:
latest (0.0.0-development)
0.0.0-development
Lint files changed in git
github.com/TheXardas/lint-changed
TheXardas/lint-changed
lint-changed
/
test
/
__mocks__
/
npm-which.js
15 lines
(12 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
jest.
genMockFromModule
(
'npm-which'
)
function
sync
(
path
) {
if
(path.
indexOf
(
'missing'
) >=
0
) {
throw
new
Error
(
`not found:
${ path }
`
) }
return
path }
module
.
exports
=
function
npmWhich
(
) {
return
{ sync } }