test(last-release): adapt registry-mock to how the registry actually behaves

This commit is contained in:
Stephan Bönnemann 2015-07-30 17:15:03 +01:00
parent 76d9e3d2be
commit 05490fe229

View File

@ -22,7 +22,7 @@ module.exports = nock('http://registry.npmjs.org')
.reply(200, availableModule) .reply(200, availableModule)
.get('/untagged') .get('/untagged')
.reply(200, availableModule) .reply(200, availableModule)
.get('/@scoped/available') .get('/@scoped%2Favailable')
.reply(200, availableModule) .reply(200, availableModule)
.get('/unavailable') .get('/unavailable')
.reply(404, {}) .reply(404, {})