refactor: use test
This commit is contained in:
parent
07f885fea8
commit
ed3e035ad6
23 changed files with 342 additions and 342 deletions
|
@ -4,7 +4,7 @@ import { parse } from 'mfm-js';
|
|||
import { extractMentions } from '../../src/misc/extract-mentions.js';
|
||||
|
||||
describe('Extract mentions', () => {
|
||||
it('simple', () => {
|
||||
test('simple', () => {
|
||||
const ast = parse('@foo @bar @baz')!;
|
||||
const mentions = extractMentions(ast);
|
||||
assert.deepStrictEqual(mentions, [{
|
||||
|
@ -22,7 +22,7 @@ describe('Extract mentions', () => {
|
|||
}]);
|
||||
});
|
||||
|
||||
it('nested', () => {
|
||||
test('nested', () => {
|
||||
const ast = parse('@foo **@bar** @baz')!;
|
||||
const mentions = extractMentions(ast);
|
||||
assert.deepStrictEqual(mentions, [{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue