Skip to content

Commit

Permalink
fix: request tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bayheck committed Mar 19, 2024
1 parent efc7738 commit f2c2485
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { RequestMock } from 'testcafe';
import DUMMY_URLS from '../../common/mock-routes.js';

const mock = RequestMock()
.onRequestTo(DUMMY_URLS.get)
.onRequestTo(DUMMY_URLS.secureGet)
.respond(() => {
throw new Error('Error in the "respond" method');
});
Expand All @@ -11,5 +11,5 @@ fixture `Fixture`
.requestHooks(mock);

test('test', async t => {
await t.navigateTo(DUMMY_URLS.get);
await t.navigateTo(DUMMY_URLS.secureGet);
});

0 comments on commit f2c2485

Please sign in to comment.