summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js')
-rw-r--r--deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js86
1 files changed, 0 insertions, 86 deletions
diff --git a/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js b/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js
deleted file mode 100644
index 2bef724b9e..0000000000
--- a/deps/npm/node_modules/realize-package-specifier/test/npa-bitbucket.js
+++ /dev/null
@@ -1,86 +0,0 @@
-var test = require("tap").test;
-var rps = require("../index.js")
-var path = require("path")
-
-test("npa-bitbucket", function (t) {
- t.setMaxListeners(999)
-
- var tests = {
- "bitbucket:user/foo-js": {
- name: null,
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "bitbucket:user/foo-js",
- raw: "bitbucket:user/foo-js"
- },
-
- "bitbucket:user/foo-js#bar/baz": {
- name: null,
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "bitbucket:user/foo-js#bar/baz",
- raw: "bitbucket:user/foo-js#bar/baz"
- },
-
- "bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /": {
- name: null,
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /",
- raw: "bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /"
- },
-
- "bitbucket:user/foo-js#bar/baz/bin": {
- name: null,
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "bitbucket:user/foo-js#bar/baz/bin",
- raw: "bitbucket:user/foo-js#bar/baz/bin"
- },
-
- "foo@bitbucket:user/foo-js": {
- name: "foo",
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "bitbucket:user/foo-js",
- raw: "foo@bitbucket:user/foo-js"
- },
-
- "git+ssh://git@bitbucket.org/user/foo#1.2.3": {
- name: null,
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "git+ssh://git@bitbucket.org/user/foo.git#1.2.3",
- raw: "git+ssh://git@bitbucket.org/user/foo#1.2.3"
- },
-
- "https://bitbucket.org/user/foo.git": {
- name: null,
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "git+https://bitbucket.org/user/foo.git",
- raw: "https://bitbucket.org/user/foo.git"
- },
-
- "@foo/bar@git+ssh://bitbucket.org/user/foo": {
- name: "@foo/bar",
- scope: "@foo",
- type: "hosted",
- hosted: { type: "bitbucket" },
- spec: "git+ssh://git@bitbucket.org/user/foo.git",
- rawSpec: "git+ssh://bitbucket.org/user/foo",
- raw: "@foo/bar@git+ssh://bitbucket.org/user/foo"
- }
- }
-
- t.plan( Object.keys(tests).length * 3 )
-
- Object.keys(tests).forEach(function (arg) {
- rps(arg, path.resolve(__dirname,'..'), function(err, res) {
- t.notOk(err, "No error")
- t.type(res, "Result")
- t.has(res, tests[arg])
- })
- })
-
-})