From d22e21c5977642c4ad88dad3eff28d0b73b8d250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Mon, 1 Jul 2019 22:44:29 +0900 Subject: [PATCH] Fix type --- test/extract-mentions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/extract-mentions.ts b/test/extract-mentions.ts index a70926cbb..07f25e404 100644 --- a/test/extract-mentions.ts +++ b/test/extract-mentions.ts @@ -6,7 +6,7 @@ import { parse } from '../src/mfm/parse'; describe('Extract mentions', () => { it('simple', () => { const ast = parse('@foo @bar @baz'); - const mentions = extractMentions(ast); + const mentions = extractMentions(ast!); assert.deepStrictEqual(mentions, [{ username: 'foo', acct: '@foo', @@ -27,7 +27,7 @@ describe('Extract mentions', () => { it('nested', () => { const ast = parse('@foo **@bar** @baz'); - const mentions = extractMentions(ast); + const mentions = extractMentions(ast!); assert.deepStrictEqual(mentions, [{ username: 'foo', acct: '@foo',