mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Port the unit tests from https://github.com/vercel/nft/tree/941be1cb3b9d38fbc99a8a6f07af568a64ed0f12/test/unit
13 lines
271 B
JavaScript
13 lines
271 B
JavaScript
const { getHighlighter } = require('shiki')
|
|
|
|
async function main() {
|
|
const { codeToThemedTokens } = await getHighlighter({
|
|
theme: 'nord',
|
|
langs: ['javascript'],
|
|
})
|
|
const result = codeToThemedTokens('let n=1', 'javascript')
|
|
Array.isArray(result)
|
|
}
|
|
|
|
main()
|