Revert "Fix tests"

This reverts commit c45b08d967864608f79a42cb21d3a8b603dfcb7e.
This commit is contained in:
Acid Chicken (硫酸鶏) 2019-05-12 22:24:50 +09:00
parent c45b08d967
commit 680b307eb5
No known key found for this signature in database
GPG Key ID: 5388F56C75B677A1

View File

@ -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',