We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d2279c commit 16c4043Copy full SHA for 16c4043
test/github.js
@@ -39,9 +39,14 @@ describe('GitHub Remote', function () {
39
versions.should.not.include('v0.2.5c');
40
}))
41
42
- it('should throw if the repository doesn\'t exist', co(function* () {
+ 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* () {
48
try {
- yield* remote.versions('jonathanong/clickable');
49
+ yield* remote.versions('jonathanong/alisudhlsdiuh');
50
throw new Error();
51
} catch (err) {
52
err.message.should.include('check that this repository still exists');
0 commit comments