Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

20 Commits

Repository files navigation

github-url-from-git

describe('parse(url)',function(){it('should support git://*',function(){varurl='git://github.com/jamesor/mongoose-versioner';parse(url).should.equal('https://github.com/jamesor/mongoose-versioner');})it('should support git://*.git',function(){varurl='git://github.com/treygriffith/cellar.git';parse(url).should.equal('https://github.com/treygriffith/cellar');})it('should support https://*',function(){varurl='https://github.com/Empeeric/i18n-node';parse(url).should.equal('https://github.com/Empeeric/i18n-node');})it('should support https://*.git',function(){varurl='https://jpillora@github.com/banchee/tranquil.git';parse(url).should.equal('https://github.com/banchee/tranquil');})it('should return undefined on failure',function(){varurl='git://github.com/justgord/.git';assert(null==parse(url));})it('should parse git@gist urls',function(){varurl='git@gist.github.com:3135914.git';parse(url).should.equal('https://gist.github.com/3135914')})it('should parse https://gist urls',function(){varurl='https://gist.github.com/3135914.git';parse(url).should.equal('https://gist.github.com/3135914')})})

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages