Skip to content

Commit

Permalink
fix: fetchPartialPackument fallback is not done right
Browse files Browse the repository at this point in the history
  • Loading branch information
rbnayax committed Aug 7, 2024
1 parent 6a7de59 commit e2681a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/package-managers/npm/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ describe('npm', function () {
it('getEngines', async () => {
await npm.getEngines('del', '2.0.0').should.eventually.deep.equal({ node: '>=0.10.0' })
await npm.getEngines('ncu-test-return-version', '1.0.0').should.eventually.deep.equal({})
await npm.getEngines('ncu-test-return-version', '1.0').should.eventually.be.rejectedWith('404 Not Found - GET https://registry.npmjs.org/ncu-test-return-version/1.0')
await npm
.getEngines('ncu-test-return-version', '1.0')
.should.eventually.be.rejectedWith('404 Not Found - GET https://registry.npmjs.org/ncu-test-return-version/1.0')
})
})

0 comments on commit e2681a2

Please sign in to comment.