add tests for binary

This commit is contained in:
2022-10-18 17:27:14 +02:00
parent 211d5f7629
commit 8397b7fc26
3 changed files with 22 additions and 0 deletions

View File

@@ -6,3 +6,10 @@ export class Promises {
} catch {}
}
}
export function compareArrayLike(a, b) {
chai.expect(a.length).to.equal(b.length)
for (let i = 0; i < a.length; i++) {
chai.expect(a[i]).to.equal(b[i])
}
}