Skip to content

Commit 15df193

Browse files
committed
test: use not.toHaveBeenCalled assertion
1 parent ddf129b commit 15df193

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/skip/skip.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ describe("skip", () => {
149149
])("it should skip codegen $describe", async ({ skip }, context) => {
150150
await startServer({ skip }, context as TestContextWithServer);
151151

152-
expect(codegenGenerateMock.mock.calls).toEqual([]);
152+
expect(codegenGenerateMock).not.toHaveBeenCalled();
153153
});
154154
});
155155

@@ -227,7 +227,7 @@ describe("skip", () => {
227227

228228
await updateQueryFile("query Foo { foo bar }");
229229

230-
expect(codegenGenerateMock.mock.calls).toEqual([]);
230+
expect(codegenGenerateMock).not.toHaveBeenCalled();
231231
});
232232
});
233233
});

0 commit comments

Comments
 (0)