From 1cb8f0fa73bb9c17a06305ac3fa06b4268494d2a Mon Sep 17 00:00:00 2001 From: Hyro Date: Fri, 5 Aug 2022 19:42:52 +0200 Subject: feat(util): support for util.TextDecoder (#990) * build:(landing) automated website build * Revert "build:(landing) automated website build" This reverts commit ddee8485fd8b76160962c410b885e17aaff95b4e. * feat(util): support for util.TextDecoder * tests(util): add TextDecoder * tests: seperate text-decoder Co-authored-by: xHyroM --- test/bun.js/util.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/bun.js/util.test.js') diff --git a/test/bun.js/util.test.js b/test/bun.js/util.test.js index 481eea2ed..15d3cd221 100644 --- a/test/bun.js/util.test.js +++ b/test/bun.js/util.test.js @@ -263,4 +263,12 @@ describe("util", () => { expect(util.TextEncoder === globalThis.TextEncoder).toBe(true); }); }); + + describe("TextDecoder", () => { + // test/bun.js/text-decoder.test.js covers test cases for TextDecoder + // here we test only if we use the same via util.TextDecoder + it("is same as global TextDecoder", () => { + expect(util.TextDecoder === globalThis.TextDecoder).toBe(true); + }); + }); }); -- cgit v1.2.3