feat(verify): added support for parsing hosted gitlab and other repo urls

Closes #114
This commit is contained in:
Gleb Bahmutov
2016-01-13 09:04:35 +01:00
committed by Stephan Bönnemann
parent 8491deb5c6
commit 66454e7e46
4 changed files with 19 additions and 3 deletions
+16
View File
@@ -41,6 +41,22 @@ test('verify pkg, options and env', function (t) {
tt.end()
})
t.test('dry run verification for gitlab repo', function (tt) {
var noErrors = verify({
options: {debug: true},
pkg: {
name: 'package',
repository: {
url: 'http://gitlab.corp.com/whats/up.git'
}
}
})
console.log(noErrors)
tt.is(noErrors.length, 0)
tt.end()
})
t.test('publish verification', function (tt) {
var noErrors = verify({
env: {NPM_TOKEN: 'yo'},