Skip to content

Commit

Permalink
Flip asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyGu committed Jun 16, 2021
1 parent 8673b40 commit a930598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/to-port-to-wpts/htmlcanvaselement.js
Expand Up @@ -107,8 +107,8 @@ describe("htmlcanvaselement", () => {
const gotPNG = gotDataURL.body;
const gotImg = PNG.sync.read(gotPNG);

assert.strictEqual(expectedImg.width, gotImg.width, "width");
assert.strictEqual(expectedImg.height, gotImg.height, "height");
assert.strictEqual(gotImg.width, expectedImg.width, "width");
assert.strictEqual(gotImg.height, expectedImg.height, "height");
assert.strictEqual(Buffer.compare(expectedImg.data, gotImg.data), 0, "byte-level comparison");
t.done();
},
Expand Down

0 comments on commit a930598

Please sign in to comment.