Skip to content

Commit

Permalink
test: Reset mock after each test
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Mar 6, 2024
1 parent 327dfd1 commit 8504448
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/__tests__/page.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ describe('Page', () => {

axiosMock.onAny().reply(200, Buffer.from(''))

beforeEach(() => {
axiosMock.resetHistory()
})

test('it encode the page.html option (pdf)', async () => {
await client.pdf.direct({
page: {
Expand Down

0 comments on commit 8504448

Please sign in to comment.