mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
update test
This commit is contained in:
parent
861b57b51d
commit
39107c9c05
1 changed files with 13 additions and 11 deletions
24
test/main.ts
24
test/main.ts
|
@ -461,21 +461,23 @@ after`;
|
||||||
assert.deepStrictEqual(parse(input), output);
|
assert.deepStrictEqual(parse(input), output);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('toString', () => {
|
describe('toString API', () => {
|
||||||
const input =
|
it('basic', () => {
|
||||||
`before
|
const input =
|
||||||
<center>
|
`before
|
||||||
Hello [tada everynyan! 🎉]
|
<center>
|
||||||
|
Hello [tada everynyan! 🎉]
|
||||||
|
|
||||||
I'm @ai, A bot of misskey!
|
I'm @ai, A bot of misskey!
|
||||||
|
|
||||||
https://github.com/syuilo/ai
|
https://github.com/syuilo/ai
|
||||||
</center>
|
</center>
|
||||||
after`;
|
after`;
|
||||||
assert.strictEqual(toString(parse(input)), input);
|
assert.strictEqual(toString(parse(input)), input);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('inspect', () => {
|
describe('inspect API', () => {
|
||||||
it('replace text', () => {
|
it('replace text', () => {
|
||||||
const input = 'good morning [tada everynyan!]';
|
const input = 'good morning [tada everynyan!]';
|
||||||
const result = parse(input);
|
const result = parse(input);
|
||||||
|
|
Loading…
Reference in a new issue