From 5db3573e18cf2991726e6ad2ea0ac7558565771f Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Mon, 29 Oct 2018 01:35:46 +0000 Subject: [PATCH] Use ts-ignore comment (#1969) Follow-up to https://github.com/avajs/ava/pull/1956. --- test/ts-types/throws.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/ts-types/throws.ts b/test/ts-types/throws.ts index a6d1a5720..ce3cc0140 100644 --- a/test/ts-types/throws.ts +++ b/test/ts-types/throws.ts @@ -11,7 +11,8 @@ class CustomError extends Error { test('throws', t => { const err1: Error = t.throws(() => {}); - // t.is(err1.foo, 'foo'); + // @ts-ignore + t.is(err1.foo, 'foo'); const err2: CustomError = t.throws(() => {}); t.is(err2.foo, 'foo'); const err3 = t.throws(() => {}); @@ -20,7 +21,8 @@ test('throws', t => { test('throwsAsync', async t => { const err1: Error = await t.throwsAsync(Promise.reject()); - // t.is(err1.foo, 'foo'); + // @ts-ignore + t.is(err1.foo, 'foo'); const err2 = await t.throwsAsync(Promise.reject()); t.is(err2.foo, 'foo'); });