Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16c4043

Browse filesBrowse files
committed
fix test for redirects
1 parent 8d2279c commit 16c4043
Copy full SHA for 16c4043

File tree

Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-2
lines changed

‎test/github.js

Copy file name to clipboardExpand all lines: test/github.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,14 @@ describe('GitHub Remote', function () {
3939
versions.should.not.include('v0.2.5c');
4040
}))
4141

42-
it('should throw if the repository doesn\'t exist', co(function* () {
42+
it('should resolve redirects if the repository was renamed', co(function* () {
43+
var versions = yield* remote.versions('jonathanong/clickable');
44+
versions.should.include('0.0.1')
45+
}))
46+
47+
it('throw if the repository doesn\'t exist', co(function* () {
4348
try {
44-
yield* remote.versions('jonathanong/clickable');
49+
yield* remote.versions('jonathanong/alisudhlsdiuh');
4550
throw new Error();
4651
} catch (err) {
4752
err.message.should.include('check that this repository still exists');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.