mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix parseNoteContent test
This commit is contained in:
parent
2f5b4557b7
commit
ab17be219c
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ import { eventFixture } from '@/test.ts';
|
||||||
import { getMediaLinks, parseNoteContent, stripimeta } from '@/utils/note.ts';
|
import { getMediaLinks, parseNoteContent, stripimeta } from '@/utils/note.ts';
|
||||||
|
|
||||||
Deno.test('parseNoteContent', () => {
|
Deno.test('parseNoteContent', () => {
|
||||||
const { html, links, firstUrl } = parseNoteContent('Hello, world!');
|
const { html, links, firstUrl } = parseNoteContent('Hello, world!', []);
|
||||||
assertEquals(html, 'Hello, world!');
|
assertEquals(html, 'Hello, world!');
|
||||||
assertEquals(links, []);
|
assertEquals(links, []);
|
||||||
assertEquals(firstUrl, undefined);
|
assertEquals(firstUrl, undefined);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue