mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
add test
This commit is contained in:
parent
ffe1e3ffca
commit
051e903d43
1 changed files with 11 additions and 1 deletions
12
test/api.ts
12
test/api.ts
|
@ -38,7 +38,17 @@ after`;
|
||||||
|
|
||||||
it('search', () => {
|
it('search', () => {
|
||||||
const input = 'MFM 書き方 123 Search';
|
const input = 'MFM 書き方 123 Search';
|
||||||
assert.strictEqual(mfm.toString(mfm.parse(input)), 'MFM 書き方 123 Search');
|
assert.strictEqual(mfm.toString(mfm.parse(input)), input);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('block code', () => {
|
||||||
|
const input = '```\nabc\n```';
|
||||||
|
assert.strictEqual(mfm.toString(mfm.parse(input)), input);
|
||||||
|
});
|
||||||
|
|
||||||
|
it('math block', () => {
|
||||||
|
const input = '\\[\ny = 2x + 1\n\\]';
|
||||||
|
assert.strictEqual(mfm.toString(mfm.parse(input)), input);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('center', () => {
|
it('center', () => {
|
||||||
|
|
Loading…
Reference in a new issue