summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index b681ed1d01..bacce017c2 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -177,6 +177,29 @@ describe('MFM', () => {
text('bar'),
]);
});
+
+ it('with underscores', () => {
+ const tokens = analyze('__foo__');
+ assert.deepStrictEqual(tokens, [
+ tree('bold', [
+ text('foo')
+ ], {}),
+ ]);
+ });
+
+ it('mixed syntax', () => {
+ const tokens = analyze('**foo__');
+ assert.deepStrictEqual(tokens, [
+ text('**foo__'),
+ ]);
+ });
+
+ it('mixed syntax', () => {
+ const tokens = analyze('__foo**');
+ assert.deepStrictEqual(tokens, [
+ text('__foo**'),
+ ]);
+ });
});
it('big', () => {