summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-07-02 20:08:30 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-07-02 20:08:30 +0900
commit014b945ea646c3d3eb600c9abc277cffa0e12ae7 (patch)
tree01a211b00c332873ac201daf0f718c3b590b16d7 /test
parentFix MFM parsing: Ignore parent [] of URL (diff)
downloadsharkey-014b945ea646c3d3eb600c9abc277cffa0e12ae7.tar.gz
sharkey-014b945ea646c3d3eb600c9abc277cffa0e12ae7.tar.bz2
sharkey-014b945ea646c3d3eb600c9abc277cffa0e12ae7.zip
Fix test
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index 8ef72c9f8a..ccef31cd2c 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -844,11 +844,11 @@ describe('MFM', () => {
});
it('ignore parent []', () => {
- const tokens = parse('[https://example.com/foo]');
+ const tokens = parse('foo [https://example.com/foo] bar');
assert.deepStrictEqual(tokens, [
- text('['),
+ text('foo ['),
leaf('url', { url: 'https://example.com/foo' }),
- text(']')
+ text('] bar')
]);
});