diff --git a/src/bun.js/test/expect.zig b/src/bun.js/test/expect.zig index d5867be2a8..db715aed39 100644 --- a/src/bun.js/test/expect.zig +++ b/src/bun.js/test/expect.zig @@ -4067,7 +4067,7 @@ pub const Expect = struct { inline else => |is_not| { const signature = comptime getSignature(name, "expected", is_not); const fmt = signature ++ "\n\n" ++ "Expected number of successful calls: {d}\n" ++ "Received number of calls: {d}\n"; - globalObject.throwPretty(fmt, .{ index, total_count }); + globalObject.throwPretty(fmt, .{ return_count, total_count }); return .zero; }, }