refactor: use test

This commit is contained in:
syuilo 2023-02-02 18:18:25 +09:00
parent 07f885fea8
commit ed3e035ad6
23 changed files with 342 additions and 342 deletions

View file

@ -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, [{