diff options
author | 2022-08-05 19:42:52 +0200 | |
---|---|---|
committer | 2022-08-05 10:42:52 -0700 | |
commit | 1cb8f0fa73bb9c17a06305ac3fa06b4268494d2a (patch) | |
tree | 95f28d4e558a8771ca649e28cc2fbdd6452a8059 /test/bun.js/util.test.js | |
parent | 5bca8a1d47ca6643ecafbd9d0f5ad624540154b0 (diff) | |
download | bun-1cb8f0fa73bb9c17a06305ac3fa06b4268494d2a.tar.gz bun-1cb8f0fa73bb9c17a06305ac3fa06b4268494d2a.tar.zst bun-1cb8f0fa73bb9c17a06305ac3fa06b4268494d2a.zip |
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 <xHyroM@users.noreply.github.com>
Diffstat (limited to 'test/bun.js/util.test.js')
-rw-r--r-- | test/bun.js/util.test.js | 8 |
1 files changed, 8 insertions, 0 deletions
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); + }); + }); }); |