aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/util.test.js
blob: 1e4a4875189531176002a94e6482ba853891cf1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { expect, describe, it } from "bun:test";
import { TextEncoder } from "util";


describe("util", () => {
  describe("TextEncoder", () => {
    // test/bun.js/text-encoder.test.js covers test cases for TextEncoder
    // here we test only if we use the same via util.TextEncoder
    it("is same as global TextEncoder", () => {
      expect(TextEncoder === globalThis.TextEncoder).toBe(true);
    });
  });
});