diff options
author | Garrone Joseph <joseph.garrone@ensimag.grenoble-inp.fr> | 2020-05-20 16:35:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 10:35:51 -0400 |
commit | 7630326b4c5ed32377f34a6668beac626d5156ac (patch) | |
tree | d69e81b76f908f7814600e764e7ee0b439751c93 /std/node/util_test.ts | |
parent | 9b4da88a96ce4c793e7b15d9b340fa6326a29a82 (diff) |
feat(std/node) Export TextDecoder and TextEncoder from util (#5663)
Diffstat (limited to 'std/node/util_test.ts')
-rw-r--r-- | std/node/util_test.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/std/node/util_test.ts b/std/node/util_test.ts index b4e6ea41f..7036368b6 100644 --- a/std/node/util_test.ts +++ b/std/node/util_test.ts @@ -148,3 +148,21 @@ test({ assert(!util.isPrimitive(objectType)); }, }); + +test({ + name: "[util] TextDecoder", + fn() { + assert(util.TextDecoder === TextDecoder); + const td: util.TextDecoder = new util.TextDecoder(); + assert(td instanceof TextDecoder); + }, +}); + +test({ + name: "[util] TextEncoder", + fn() { + assert(util.TextEncoder === TextEncoder); + const te: util.TextEncoder = new util.TextEncoder(); + assert(te instanceof TextEncoder); + }, +}); |