add dish translation tests for node

This commit is contained in:
d98762625 2019-04-29 17:09:01 +01:00
parent aeb08caf77
commit 65a3897f87
7 changed files with 147 additions and 24 deletions

View file

@ -208,7 +208,7 @@ class Dish {
valid() {
switch (this.type) {
case Dish.BYTE_ARRAY:
if (!(this.value instanceof Array)) {
if (!(this.value instanceof Uint8Array) && !(this.value instanceof Array)) {
return false;
}