summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/realize-package-specifier/test/npa-windows.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/realize-package-specifier/test/npa-windows.js')
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/npa-windows.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/deps/npm/node_modules/realize-package-specifier/test/npa-windows.js b/deps/npm/node_modules/realize-package-specifier/test/npa-windows.js
deleted file mode 100644
index f6275bea9c..0000000000
--- a/deps/npm/node_modules/realize-package-specifier/test/npa-windows.js
+++ /dev/null
@@ -1,42 +0,0 @@
-global.FAKE_WINDOWS = true
-
-var rps = require('../index.js')
-var test = require("tap").test
-var path = require("path")
-
-var cases = {
- "C:\\x\\y\\z": {
- raw: 'C:\\x\\y\\z',
- scope: null,
- name: null,
- rawSpec: 'C:\\x\\y\\z',
- spec: path.resolve('C:\\x\\y\\z'),
- type: 'local'
- },
- "foo@C:\\x\\y\\z": {
- raw: 'foo@C:\\x\\y\\z',
- scope: null,
- name: 'foo',
- rawSpec: 'C:\\x\\y\\z',
- spec: path.resolve('C:\\x\\y\\z'),
- type: 'local'
- },
- "foo@/foo/bar/baz": {
- raw: 'foo@/foo/bar/baz',
- scope: null,
- name: 'foo',
- rawSpec: '/foo/bar/baz',
- spec: path.resolve('/foo/bar/baz'),
- type: 'local'
- }
-}
-
-test("parse a windows path", function (t) {
- t.plan( Object.keys(cases).length )
- Object.keys(cases).forEach(function (c) {
- var expect = cases[c]
- rps(c, function(err, actual) {
- t.same(actual, expect, c)
- })
- })
-})