diff --git a/tests/nuxt/__snapshots__/content-rich.test.ts.snap b/tests/nuxt/__snapshots__/content-rich.test.ts.snap index 73f59cf08d..3709a43272 100644 --- a/tests/nuxt/__snapshots__/content-rich.test.ts.snap +++ b/tests/nuxt/__snapshots__/content-rich.test.ts.snap @@ -63,7 +63,7 @@ exports[`content-rich > collapse mentions 1`] = ` >@elk @@ -71,7 +71,7 @@ exports[`content-rich > collapse mentions 1`] = ` >@elk @@ -80,7 +80,7 @@ exports[`content-rich > collapse mentions 1`] = ` >@antfu @@ -96,7 +96,7 @@ exports[`content-rich > collapse mentions 1`] = ` >@sxzz @@ -104,7 +104,7 @@ exports[`content-rich > collapse mentions 1`] = ` >@patak @@ -183,7 +183,7 @@ exports[`content-rich > hashtag adds bdi 1`] = ` #turkey
@@ -197,7 +197,7 @@ exports[`content-rich > hashtag doesn't add 2 bdi 1`] = ` @@ -262,7 +262,7 @@ exports[`content-rich > shows some collapsed mentions grouped 1`] = ` >@antfu @@ -270,7 +270,7 @@ exports[`content-rich > shows some collapsed mentions grouped 1`] = ` >@patak @@ -278,7 +278,7 @@ exports[`content-rich > shows some collapsed mentions grouped 1`] = ` >@sxzz shows some collapsed mentions inline 1`] = ` >@antfu diff --git a/tests/nuxt/content-rich.test.ts b/tests/nuxt/content-rich.test.ts index 1e52e6726f..ed0b64183e 100644 --- a/tests/nuxt/content-rich.test.ts +++ b/tests/nuxt/content-rich.test.ts @@ -86,14 +86,14 @@ describe('content-rich', () => { }) it('collapse mentions', async () => { - const { formatted } = await render('@elk @elk content @antfu @daniel @sxzz @patak content
', { + const { formatted } = await render('@elk @elk content @antfu @daniel @sxzz @patak content
', { collapseMentionLink: true, }) expect(formatted).toMatchSnapshot() }) it('hides collapsed mentions', async () => { - const { formatted } = await render('@elk content
', { + const { formatted } = await render('content
', { collapseMentionLink: true, inReplyToStatus: { account: { acct: 'elk@webtoo.ls' }, mentions: [] as mastodon.v1.StatusMention[] } as mastodon.v1.Status, }) @@ -101,7 +101,7 @@ describe('content-rich', () => { }) it('shows some collapsed mentions inline', async () => { - const { formatted } = await render('', { + const { formatted } = await render('@antfu content
', { collapseMentionLink: true, inReplyToStatus: { account: { acct: 'elk@webtoo.ls' }, mentions: [] as mastodon.v1.StatusMention[] } as mastodon.v1.Status, }) @@ -109,7 +109,7 @@ describe('content-rich', () => { }) it('shows some collapsed mentions grouped', async () => { - const { formatted } = await render('@elk @antfu @patak @sxzzcontent
', { + const { formatted } = await render('', { collapseMentionLink: true, inReplyToStatus: { account: { acct: 'elk@webtoo.ls' }, mentions: [] as mastodon.v1.StatusMention[] } as mastodon.v1.Status, }) @@ -167,7 +167,7 @@ describe('content-rich', () => { describe('editor', () => { it('transform mentions', () => { - const ast = parseMastodonHTML('@elk Hello
') + const ast = parseMastodonHTML('@elk Hello
') const transformed = treeToText(ast) expect(transformed).toMatchSnapshot() })