From 680b307eb592fa740d2f154bd39e49516a6c8a7b 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: Sun, 12 May 2019 22:24:50 +0900 Subject: [PATCH] Revert "Fix tests" This reverts commit c45b08d967864608f79a42cb21d3a8b603dfcb7e. --- 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 7c8051345..a70926cbb 100644 --- a/test/extract-mentions.ts +++ b/test/extract-mentions.ts @@ -5,7 +5,7 @@ import { parse } from '../src/mfm/parse'; describe('Extract mentions', () => { it('simple', () => { - const ast = parse('@foo @bar @baz') || []; + const ast = parse('@foo @bar @baz'); const mentions = extractMentions(ast); assert.deepStrictEqual(mentions, [{ username: 'foo', @@ -26,7 +26,7 @@ describe('Extract mentions', () => { }); it('nested', () => { - const ast = parse('@foo **@bar** @baz') || []; + const ast = parse('@foo **@bar** @baz'); const mentions = extractMentions(ast); assert.deepStrictEqual(mentions, [{ username: 'foo',