Skip to content

Commit

Permalink
fix failing test and assertion failure
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgithub committed Nov 12, 2024
1 parent 53c6042 commit 66eae13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bun.js/RuntimeTranspilerCache.zig
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,6 @@ pub const RuntimeTranspilerCache = struct {
return;
};
if (comptime bun.Environment.allow_assert)
debug("put() = {d} bytes", .{output_code.latin1().len});
debug("put() = {d} bytes", .{output_code.length()});
}
};
5 changes: 1 addition & 4 deletions test/js/bun/shell/bunshell.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ describe("bunshell", () => {

test("escape unicode", async () => {
const { stdout } = await $`echo \\弟\\気`;
// TODO: Uncomment and replace after unicode in template tags is supported
// expect(stdout.toString("utf8")).toEqual(`\弟\気\n`);
// Set this here for now, because unicode in template tags while using .raw is broken, but should be fixed
expect(stdout.toString("utf8")).toEqual("\\u5F1F\\u6C17\n");
expect(stdout.toString("utf8")).toEqual(`\\弟\\気\n`);
});

/**
Expand Down

0 comments on commit 66eae13

Please sign in to comment.