-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added refactered tests for gists
- Loading branch information
Michael Perrotte
committed
Sep 27, 2019
1 parent
888f9b4
commit 53364f9
Showing
2 changed files
with
299 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
'use strict' | ||
|
||
module.exports = [ | ||
{ | ||
host: function (p) { return 'gist:' + p.owner + '/' + p.project }, | ||
label: 'gist' | ||
}, | ||
{ | ||
host: function (p) { return 'git@' + p.domain + ':/' + p.project }, | ||
label: 'git@:/' | ||
}, | ||
{ | ||
host: function (p) { return 'git@' + p.domain + ':/' + p.project + '.git' }, | ||
label: 'git@:/.git' | ||
}, | ||
{ | ||
host: function (p) { return 'git@' + p.domain + ':' + p.project + '.git' }, | ||
label: 'git@' | ||
}, | ||
{ | ||
host: function (p) { return 'git@' + p.domain + ':/' + p.project + '.git' }, | ||
label: 'git@/' | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + '/' + p.project }, | ||
label: 'git' | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + '/' + p.project + '.git' }, | ||
label: 'git.git' | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + '/' + p.project + '#' + p.branch }, | ||
label: 'git#branch', | ||
hasBranch: true | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + '/' + p.project + '.git#' + p.branch }, | ||
label: 'git.git#branch', | ||
hasBranch: true | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + ':/' + p.project }, | ||
label: 'git:/' | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + ':/' + p.project + '.git' }, | ||
label: 'git:/.git' | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + ':/' + p.project + '#' + p.branch }, | ||
label: 'git:/#branch', | ||
hasBranch: true | ||
}, | ||
{ | ||
host: function (p) { return 'git://' + p.domain + ':/' + p.project + '.git#' + p.branch }, | ||
label: 'git:/.git#branch', | ||
hasBranch: true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters