Skip to content

Commit

Permalink
test(index): parse GitLab HTTPS URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
hutson committed May 6, 2019
1 parent 1774ced commit e6b4500
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ describe(`get-pkg-repo`, () => {
});
});

it(`should parse gitlab https`, () => {
const repository = getPkgRepo({repository: `https://gitlab.com/hyper-expanse/semantic-release-gitlab-releaser.git`});
expect(repository).to.contain({
domain: `gitlab.com`,
type: `gitlab`,
user: `hyper-expanse`,
project: `semantic-release-gitlab-releaser`,
});
});

it(`should parse github ssh`, () => {
const repository = getPkgRepo({repository: {url: `[email protected]:joyent/node.git`}});
expect(repository).to.contain({
Expand Down

0 comments on commit e6b4500

Please sign in to comment.