1 global.FAKE_WINDOWS = true
3 var npa = require("../npa.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 Object.keys(cases).forEach(function (c) {
38 t.same(actual, expect, c)