From 33aaf3376b36bcf35c9465fa52b21873dc18a158 Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Tue, 21 May 2024 13:42:20 -0700 Subject: [PATCH] use count instead of index for error output --- src/bun.js/test/expect.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }, }