Skip to content

Commit

Permalink
Updated test file to replace request-promise-native
Browse files Browse the repository at this point in the history
  • Loading branch information
yashkohli88 committed Sep 19, 2024
1 parent f99cf6b commit cec14d2
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 cec14d2

Please sign in to comment.