Skip to content

Commit 6c15790

Browse files
committed
Fix: Handle DOMException error in Ava tests
1 parent 3cbdc86 commit 6c15790

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test-tap/test.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,9 @@ test('t.passed value is false when teardown callback is executed for failing tes
768768
title: 'foo',
769769
}).run();
770770
});
771-
772-
773771
test('DOMException should be considered an error', async t => {
774772
await t.throwsAsync(
775773
Promise.reject(new DOMException('an error')),
776774
{ instanceOf: DOMException } // Explicitly specify the expected error type
777775
);
778-
});
776+
});

0 commit comments

Comments
 (0)