Skip to content

Commit

Permalink
Update tests for hosted-git-info@2 behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed Apr 7, 2015
1 parent a567c38 commit c0ed0d1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions test/bitbucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,39 @@ require("tap").test("basic", function (t) {
name: null,
type: "hosted",
hosted: { type: "bitbucket" },
spec: "git+ssh://git@bitbucket.org/user/foo-js.git",
spec: "bitbucket:user/foo-js",
raw: "bitbucket:user/foo-js"
},

"bitbucket:user/foo-js#bar/baz": {
name: null,
type: "hosted",
hosted: { type: "bitbucket" },
spec: "git+ssh://git@bitbucket.org/user/foo-js.git#bar/baz",
spec: "bitbucket:user/foo-js#bar/baz",
raw: "bitbucket:user/foo-js#bar/baz"
},

"bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /": {
name: null,
type: "hosted",
hosted: { type: "bitbucket" },
spec: "git+ssh://git@bitbucket.org/user..blerg--/..foo-js.git# . . . . . some . tags / / /",
spec: "bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /",
raw: "bitbucket:user..blerg--/..foo-js# . . . . . some . tags / / /"
},

"bitbucket:user/foo-js#bar/baz/bin": {
name: null,
type: "hosted",
hosted: { type: "bitbucket" },
spec: "git+ssh://git@bitbucket.org/user/foo-js.git#bar/baz/bin",
spec: "bitbucket:user/foo-js#bar/baz/bin",
raw: "bitbucket:user/foo-js#bar/baz/bin"
},

"foo@bitbucket:user/foo-js": {
name: "foo",
type: "hosted",
hosted: { type: "bitbucket" },
spec: "git+ssh://git@bitbucket.org/user/foo-js.git",
spec: "bitbucket:user/foo-js",
raw: "foo@bitbucket:user/foo-js"
},

Expand All @@ -57,7 +57,7 @@ require("tap").test("basic", function (t) {
name: null,
type: "hosted",
hosted: { type: "bitbucket" },
spec: "git+ssh://git@bitbucket.org/user/foo.git",
spec: "https://bitbucket.org/user/foo.git",
raw: "https://bitbucket.org/user/foo.git"
},

Expand Down
20 changes: 10 additions & 10 deletions test/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,47 @@ require("tap").test("basic", function (t) {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo-js.git",
spec: "github:user/foo-js",
raw: "user/foo-js"
},

"user/foo-js#bar/baz": {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo-js.git#bar/baz",
spec: "github:user/foo-js#bar/baz",
raw: "user/foo-js#bar/baz"
},

"user..blerg--/..foo-js# . . . . . some . tags / / /": {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user..blerg--/..foo-js.git# . . . . . some . tags / / /",
spec: "github:user..blerg--/..foo-js# . . . . . some . tags / / /",
raw: "user..blerg--/..foo-js# . . . . . some . tags / / /"
},

"user/foo-js#bar/baz/bin": {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo-js.git#bar/baz/bin",
raw: "github:user/foo-js#bar/baz/bin",
raw: "user/foo-js#bar/baz/bin"
},

"foo@user/foo-js": {
name: "foo",
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo-js.git",
spec: "github:user/foo-js",
raw: "foo@user/foo-js"
},

"github:user/foo-js": {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo-js.git",
spec: "github:user/foo-js",
raw: "github:user/foo-js"
},

Expand All @@ -65,15 +65,15 @@ require("tap").test("basic", function (t) {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo.git",
spec: "git://github.com/user/foo.git",
raw: "git://github.com/user/foo"
},

"https://github.com/user/foo.git": {
name: null,
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/user/foo.git",
spec: "https://github.com/user/foo.git",
raw: "https://github.com/user/foo.git"
},

Expand All @@ -90,8 +90,8 @@ require("tap").test("basic", function (t) {
"foo@bar/foo": {
name: "foo",
type: "hosted",
hosted: { type: "github" },
spec: "git+ssh://git@github.com/bar/foo.git",
hosted: { type: "github" },
spec: "github:bar/foo",
raw: "foo@bar/foo"
}
}
Expand Down
12 changes: 6 additions & 6 deletions test/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,39 @@ require("tap").test("basic", function (t) {
name: null,
type: "hosted",
hosted: { type: "gitlab" },
spec: "git+ssh://git@gitlab.com/user/foo-js.git",
raw: "gitlab:user/foo-js",
raw: "gitlab:user/foo-js"
},

"gitlab:user/foo-js#bar/baz": {
name: null,
type: "hosted",
hosted: { type: "gitlab" },
spec: "git+ssh://git@gitlab.com/user/foo-js.git#bar/baz",
raw: "gitlab:user/foo-js#bar/baz",
raw: "gitlab:user/foo-js#bar/baz"
},

"gitlab:user..blerg--/..foo-js# . . . . . some . tags / / /": {
name: null,
type: "hosted",
hosted: { type: "gitlab" },
spec: "git+ssh://git@gitlab.com/user..blerg--/..foo-js.git# . . . . . some . tags / / /",
spec: "gitlab:user..blerg--/..foo-js# . . . . . some . tags / / /",
raw: "gitlab:user..blerg--/..foo-js# . . . . . some . tags / / /"
},

"gitlab:user/foo-js#bar/baz/bin": {
name: null,
type: "hosted",
hosted: { type: "gitlab" },
spec: "git+ssh://git@gitlab.com/user/foo-js.git#bar/baz/bin",
spec: "gitlab:user/foo-js#bar/baz/bin",
raw: "gitlab:user/foo-js#bar/baz/bin"
},

"foo@gitlab:user/foo-js": {
name: "foo",
type: "hosted",
hosted: { type: "gitlab" },
spec: "git+ssh://git@gitlab.com/user/foo-js.git",
spec: "gitlab:user/foo-js",
raw: "foo@gitlab:user/foo-js"
},

Expand All @@ -57,7 +57,7 @@ require("tap").test("basic", function (t) {
name: null,
type: "hosted",
hosted: { type: "gitlab" },
spec: "git+ssh://git@gitlab.com/user/foo.git",
spec: "https://gitlab.com/user/foo.git",
raw: "https://gitlab.com/user/foo.git"
},

Expand Down

0 comments on commit c0ed0d1

Please sign in to comment.