Skip to content

Commit

Permalink
Update language-plugin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jun 6, 2024
1 parent f36c66f commit e601c66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/language-service/test/language-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2243,7 +2243,9 @@ test('create virtual code w/ mdxJsxFlowElement w/ blockquote child', () => {

const snapshot = snapshotFromLines('<div>', '>', '</div>', '<div>></div>', '')

const code = plugin.createVirtualCode?.('/test.mdx', 'mdx', snapshot)
const code = plugin.createVirtualCode?.('/test.mdx', 'mdx', snapshot, {
getAssociatedScript: () => undefined
})

assert.ok(code instanceof VirtualMdxCode)
assert.equal(code.id, 'mdx')
Expand Down

0 comments on commit e601c66

Please sign in to comment.