Skip to content

Commit

Permalink
Fix broken test case ui/stream/reader_test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed May 18, 2020
1 parent 16c4825 commit e1cbe2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/stream/reader_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ describe("Reader", () => {

let rr = await reader.readOne(r);

assert.deepEqual(rr, [0]);
assert.deepEqual(rr, Uint8Array.from([0]));

rr = await reader.readOne(r);

assert.deepEqual(rr, [1]);
assert.deepEqual(rr, Uint8Array.from([1]));
});

it("readN", async () => {
Expand All @@ -120,11 +120,11 @@ describe("Reader", () => {

let rr = await reader.readN(r, 3);

assert.deepEqual(rr, [0, 1, 2]);
assert.deepEqual(rr, Uint8Array.from([0, 1, 2]));

rr = await reader.readN(r, 3);

assert.deepEqual(rr, [3, 4, 5]);
assert.deepEqual(rr, Uint8Array.from([3, 4, 5]));
});

it("Limited", async () => {
Expand Down Expand Up @@ -180,7 +180,7 @@ describe("Reader", () => {
let result = await reader.readCompletely(limited);

assert.equal(limited.completed(), true);
assert.deepEqual(result, expected);
assert.deepEqual(result, Uint8Array.from(expected));
});

it("readUntil", async () => {
Expand Down

0 comments on commit e1cbe2f

Please sign in to comment.