Skip to content

Commit

Permalink
Updated test file for request-promise-native replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
yashkohli88 committed Sep 24, 2024
1 parent b33ae7a commit b2895db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/routes/origins.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Pypi origin routes', () => {
const fixturePath = 'test/fixtures/origins/pypi'
beforeEach(() => {
requestPromiseStub = sinon.stub()
const createRoute = proxyquire('../../routes/originPyPi', { 'request-promise-native': requestPromiseStub })
const createRoute = proxyquire('../../routes/originPyPi', { '../lib/fetch': { callFetch: requestPromiseStub } })
router = createRoute(true)
})

Expand Down

0 comments on commit b2895db

Please sign in to comment.