1 global.FAKE_WINDOWS = true
3 var rps = require('../index.js')
4 var test = require("tap").test
5 var path = require("path")
12 rawSpec: 'C:\\x\\y\\z',
13 spec: path.resolve('C:\\x\\y\\z'),
17 raw: 'foo@C:\\x\\y\\z',
20 rawSpec: 'C:\\x\\y\\z',
21 spec: path.resolve('C:\\x\\y\\z'),
25 raw: 'foo@/foo/bar/baz',
28 rawSpec: '/foo/bar/baz',
29 spec: path.resolve('/foo/bar/baz'),
34 test("parse a windows path", function (t) {
35 t.plan( Object.keys(cases).length )
36 Object.keys(cases).forEach(function (c) {
38 rps(c, function(err, actual) {
39 t.same(actual, expect, c)