aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/js/bun/test/mock-test.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/js/bun/test/mock-test.test.ts b/test/js/bun/test/mock-test.test.ts
index c5f2f3eec..7d4e92919 100644
--- a/test/js/bun/test/mock-test.test.ts
+++ b/test/js/bun/test/mock-test.test.ts
@@ -146,7 +146,7 @@ test("spyOn works on globalThis", () => {
// spyOn does not work with getters/setters yet.
test("lastCall works", () => {
- const fn = mock((v) => -v);
+ const fn = mock(v => -v);
expect(fn.mock.lastCall).toBeUndefined();
expect(fn(1)).toBe(-1);
expect(fn.mock.lastCall).toEqual([1]);