Skip to content

Commit 5db3573

Browse files
novemberbornsindresorhus
authored andcommitted
Use ts-ignore comment (#1969)
Follow-up to #1956.
1 parent aa35f15 commit 5db3573

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/ts-types/throws.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ class CustomError extends Error {
1111

1212
test('throws', t => {
1313
const err1: Error = t.throws(() => {});
14-
// t.is(err1.foo, 'foo');
14+
// @ts-ignore
15+
t.is(err1.foo, 'foo');
1516
const err2: CustomError = t.throws(() => {});
1617
t.is(err2.foo, 'foo');
1718
const err3 = t.throws<CustomError>(() => {});
@@ -20,7 +21,8 @@ test('throws', t => {
2021

2122
test('throwsAsync', async t => {
2223
const err1: Error = await t.throwsAsync(Promise.reject());
23-
// t.is(err1.foo, 'foo');
24+
// @ts-ignore
25+
t.is(err1.foo, 'foo');
2426
const err2 = await t.throwsAsync<CustomError>(Promise.reject());
2527
t.is(err2.foo, 'foo');
2628
});

0 commit comments

Comments
 (0)