UNPKG
sherry-utils
Version:
latest (2.0.0-alpha.9)
next (2.0.0-alpha.8)
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
2.0.0-alpha.0
sherry-utils for Sherry
github.com/sherry/sherry/packages/sherry-utils
sherry/sherry
sherry-utils
/
__test__
/
isLocalPath.test.js
10 lines
(8 loc)
•
213 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
test = require(
'ava'
)
const
{ isLocalPath } = require(
'../'
) test(
'works'
, t => { t.
true
(isLocalPath(
'./ff'
)) t.
true
(isLocalPath(
'/ff'
)) t.
true
(isLocalPath(
'c:///ff'
)) t.
false
(isLocalPath(
'ff'
)) })