Skip to content

Commit

Permalink
Remove awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend committed Sep 16, 2024
1 parent 4703f9d commit 0790ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser/element.vdiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe('element-different', () => {
} catch (ex) {
fail = true;
}
await expect(fail, 'current and golden images to be different').equal(!isGolden);
expect(fail, 'current and golden images to be different').equal(!isGolden);

if (!isGolden) {
await executeServerCommand('vdiff-revert-golden-file', { testCategory: 'element-different', fileName: `${name}.png` });
Expand All @@ -240,7 +240,7 @@ describe('element-different', () => {
}

if (!isGolden) {
await expect(fail, 'current and golden images to have different byte size').equal(true);
expect(fail, 'current and golden images to have different byte size').equal(true);
await executeServerCommand('vdiff-revert-golden-file', { testCategory: 'element-different', fileName: 'byte-size.png' });
} else {
// Modify golden file to be different byte size than what the test will generate
Expand Down

0 comments on commit 0790ced

Please sign in to comment.