Skip to content

Commit

Permalink
Fix tests for changes in @types/react
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 17, 2023
1 parent aa6cfd8 commit 0242d11
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ test('should pass on raw source position to non-tag components if rawSourcePos o
rawSourcePos
rehypePlugins={[rehypeRaw]}
components={{
// @ts-expect-error JSX types currently only handle element returns not string returns
em({sourcePosition}) {
assert.deepEqual(sourcePosition, {
start: {line: 1, column: 1, offset: 0},
Expand Down Expand Up @@ -1224,7 +1223,6 @@ test('should pass `node` as prop to all non-tag/non-fragment components', () =>
<Markdown
children={input}
components={{
// @ts-expect-error JSX types currently only handle element returns not string returns
h1(props) {
let text = ''
visit(props.node, 'text', (child) => {
Expand Down

0 comments on commit 0242d11

Please sign in to comment.