Additional tests (need to expand more...) (#1172)

* Additional utility tests

* Args on constructor
This commit is contained in:
Jaco
2021-11-11 15:20:01 +02:00
committed by GitHub
parent 313b44388a
commit 9e1e49a1b8
7 changed files with 94 additions and 6 deletions
+1 -3
View File
@@ -16,9 +16,7 @@ class NodeFallback {
// For a Jest 26.0.1 environment, Buffer !== Uint8Array
encode (value: string): Uint8Array {
const encoded = this.#encoder.encode(value);
return Uint8Array.from(encoded);
return Uint8Array.from(this.#encoder.encode(value));
}
}