diff options
author | 2023-10-16 13:34:48 -0700 | |
---|---|---|
committer | 2023-10-16 15:14:15 -0700 | |
commit | c3f5baa091968e0807724e6fe1d836bbd8a3f115 (patch) | |
tree | e78f0fe26ab8c4b44a2f8ea12a24f7f9ec6cda64 | |
parent | 800ad150ff7d418eb8c60fe912a632514740e5f5 (diff) | |
download | bun-c3f5baa091968e0807724e6fe1d836bbd8a3f115.tar.gz bun-c3f5baa091968e0807724e6fe1d836bbd8a3f115.tar.zst bun-c3f5baa091968e0807724e6fe1d836bbd8a3f115.zip |
Fix `toHaveBeenCalled` having wrong error signature
Fixes #6527
-rw-r--r-- | src/bun.js/test/expect.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/test/expect.zig b/src/bun.js/test/expect.zig index 6a7671f84..f83a9b194 100644 --- a/src/bun.js/test/expect.zig +++ b/src/bun.js/test/expect.zig @@ -3348,7 +3348,7 @@ pub const Expect = struct { globalObject.throw(Output.prettyFmt(fmt, false), .{calls.toFmt(globalObject, &formatter)}); return .zero; } else { - const signature = comptime getSignature("toHaveBeenCalled", "", true); + const signature = comptime getSignature("toHaveBeenCalled", "", false); const fmt = signature ++ "\n\nExpected <green>{any}<r>\n"; if (Output.enable_ansi_colors) { globalObject.throw(Output.prettyFmt(fmt, true), .{calls.toFmt(globalObject, &formatter)}); @@ -3403,7 +3403,7 @@ pub const Expect = struct { globalObject.throw(Output.prettyFmt(fmt, false), .{calls.toFmt(globalObject, &formatter)}); return .zero; } else { - const signature = comptime getSignature("toHaveBeenCalledTimes", "<green>expected<r>", true); + const signature = comptime getSignature("toHaveBeenCalledTimes", "<green>expected<r>", false); const fmt = signature ++ "\n\nExpected <green>{any}<r>\n"; if (Output.enable_ansi_colors) { globalObject.throw(Output.prettyFmt(fmt, true), .{calls.toFmt(globalObject, &formatter)}); |