diff options
Diffstat (limited to 'deps/npm/node_modules/hosted-git-info/test/basic.js')
-rw-r--r-- | deps/npm/node_modules/hosted-git-info/test/basic.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/deps/npm/node_modules/hosted-git-info/test/basic.js b/deps/npm/node_modules/hosted-git-info/test/basic.js deleted file mode 100644 index 0b93f50e20..0000000000 --- a/deps/npm/node_modules/hosted-git-info/test/basic.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict' -var HostedGit = require('../index') -var test = require('tap').test - -test('basic', function (t) { - t.is(HostedGit.fromUrl('https://google.com'), undefined, 'null on failure') - t.is(HostedGit.fromUrl('https://github.com/abc/def').getDefaultRepresentation(), 'https', 'match https urls') - t.is(HostedGit.fromUrl('ssh://git@github.com/abc/def').getDefaultRepresentation(), 'sshurl', 'match ssh urls') - t.is(HostedGit.fromUrl('git+ssh://git@github.com/abc/def').getDefaultRepresentation(), 'sshurl', 'match git+ssh urls') - t.is(HostedGit.fromUrl('git+https://github.com/abc/def').getDefaultRepresentation(), 'https', 'match git+https urls') - t.is(HostedGit.fromUrl('git@github.com:abc/def').getDefaultRepresentation(), 'sshurl', 'match ssh connect strings') - t.is(HostedGit.fromUrl('git://github.com/abc/def').getDefaultRepresentation(), 'git', 'match git urls') - t.is(HostedGit.fromUrl('github:abc/def').getDefaultRepresentation(), 'shortcut', 'match shortcuts') - t.end() -}) |