mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 19:38:58 +00:00
Fix incorrect StringDecoder export test
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { expect, it } from "bun:test";
|
||||
var { StringDecoder } = require("string_decoder");
|
||||
|
||||
it("require('string_decoder')", () => {
|
||||
expect(StringDecoder1).toBe(StringDecoder);
|
||||
it("require('string_decoder')", async () => {
|
||||
expect((await import("string_decoder")).StringDecoder).toBe(StringDecoder);
|
||||
});
|
||||
|
||||
it("StringDecoder-utf8", () => {
|
||||
|
||||
Reference in New Issue
Block a user