Skip to content

Commit 8504448

Browse files
committed
test: Reset mock after each test
1 parent 327dfd1 commit 8504448

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/__tests__/page.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ describe('Page', () => {
1111

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

14+
beforeEach(() => {
15+
axiosMock.resetHistory()
16+
})
17+
1418
test('it encode the page.html option (pdf)', async () => {
1519
await client.pdf.direct({
1620
page: {

0 commit comments

Comments
 (0)