Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 17, 2023
1 parent 5461a0a commit aa41024
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@
"c8": "^8.0.0",
"github-slugger": "^2.0.0",
"hast-util-to-html": "^8.0.0",
"mdast-util-to-hast": "^12.0.0",
"mdast-util-to-hast": "^13.0.0",
"micromark-extension-gfm": "^3.0.0",
"prettier": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"undici": "^5.0.0",
"xo": "^0.54.0"
"xo": "^0.55.0"
},
"scripts": {
"crawl": "node --conditions development script/crawl-tests.js",
"prepack": "npm run build && npm run format",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api-prod": "node --conditions production test/index.js",
"test-api-dev": "node --conditions development test/index.js",
"test-api": "npm run test-api-dev && npm run test-api-prod",
Expand Down
16 changes: 9 additions & 7 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ test('markdown -> mdast', async function (t) {
mdastExtensions: [gfmFromMarkdown()]
})

const hast = toHast(mdast, {allowDangerousHtml: true})
assert(hast, 'expected node')
const actualHtml = toHtml(hast, {
allowDangerousHtml: true,
entities: {useNamedReferences: true},
closeSelfClosing: true
})
const actualHtml = toHtml(
// @ts-expect-error: remove when `to-html` is released.
toHast(mdast, {allowDangerousHtml: true}),
{
allowDangerousHtml: true,
entities: {useNamedReferences: true},
closeSelfClosing: true
}
)

/** @type {string} */
let expectedMarkdown
Expand Down

0 comments on commit aa41024

Please sign in to comment.