refactor: upgrade masto 5 (#867)
This commit is contained in:
parent
39034c5777
commit
5c8f75b9b7
108 changed files with 438 additions and 445 deletions
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @vitest-environment jsdom
|
||||
*/
|
||||
import type { Emoji } from 'masto'
|
||||
import type { mastodon } from 'masto'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { format } from 'prettier'
|
||||
import { render as renderTree } from 'ultrahtml'
|
||||
|
@ -66,7 +66,7 @@ describe('html-parse', () => {
|
|||
})
|
||||
})
|
||||
|
||||
async function render(input: string, emojis?: Record<string, Emoji>) {
|
||||
async function render(input: string, emojis?: Record<string, mastodon.v1.CustomEmoji>) {
|
||||
const tree = parseMastodonHTML(input, { emojis })
|
||||
const html = await renderTree(tree)
|
||||
let formatted = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue