Skip to content
Snippets Groups Projects
Commit 2030fd35 authored by marihachi's avatar marihachi
Browse files

add test

parent 6ac576b7
No related branches found
No related tags found
No related merge requests found
......@@ -426,6 +426,12 @@ describe('FullParser', () => {
describe('hashtag', () => {
it('basic', () => {
const input = '#abc';
const output = [HASHTAG('abc')];
assert.deepStrictEqual(mfm.parse(input), output);
});
it('basic 2', () => {
const input = 'before #abc after';
const output = [TEXT('before '), HASHTAG('abc'), TEXT(' after')];
assert.deepStrictEqual(mfm.parse(input), output);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment