Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/normalize-git-url/test/basic.js')
-rw-r--r--deps/npm/node_modules/normalize-git-url/test/basic.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/npm/node_modules/normalize-git-url/test/basic.js b/deps/npm/node_modules/normalize-git-url/test/basic.js
index 00ac6d3131b..37952d651a1 100644
--- a/deps/npm/node_modules/normalize-git-url/test/basic.js
+++ b/deps/npm/node_modules/normalize-git-url/test/basic.js
@@ -16,10 +16,18 @@ test('basic normalization tests', function (t) {
{ url: 'https://user@hostname/project/blah.git', branch: 'commit-ish' }
)
t.same(
+ normalize('git+https://user@hostname:project/blah.git#commit-ish'),
+ { url: 'https://user@hostname/project/blah.git', branch: 'commit-ish' }
+ )
+ t.same(
normalize('git+ssh://git@github.com:npm/npm.git#v1.0.27'),
{ url: 'git@github.com:npm/npm.git', branch: 'v1.0.27' }
)
t.same(
+ normalize('git+ssh://git@github.com:/npm/npm.git#v1.0.28'),
+ { url: 'git@github.com:/npm/npm.git', branch: 'v1.0.28' }
+ )
+ t.same(
normalize('git+ssh://git@github.com:org/repo#dev'),
{ url: 'git@github.com:org/repo', branch: 'dev' }
)