This commit is contained in:
marihachi 2021-04-15 14:50:21 +09:00
parent 6ac576b748
commit 2030fd3537

View file

@ -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);