Skip to content

Commit

Permalink
test: fix type issue error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 28, 2023
1 parent dd757dd commit 43205d6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
"node": ">=16"
},
"dependencies": {
"unified": "~11.0.0",
"unist-util-visit": "~5.0.0"
"unified": "^11.0.0",
"unist-util-visit": "^5.0.0"
},
"devDependencies": {
"rehype": "~13.0.0",
"rehype-stringify": "~10.0.0",
"remark": "~15.0.0",
"remark-gfm": "~4.0.0",
"remark-parse": "~11.0.0",
"remark-rehype": "~11.0.0",
"rehype": "^13.0.0",
"rehype-stringify": "^10.0.0",
"remark": "^15.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.0.0",
"tsbb": "^4.2.3"
}
}
1 change: 1 addition & 0 deletions src/detailsNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function detailsNode(title?: string): Element {
{
type: 'element',
tagName: 'summary',
properties: {},
children: [
{
type: 'element',
Expand Down
4 changes: 2 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { unified } from 'unified';
import gfm from 'remark-gfm';
import { rehype } from 'rehype';
import gfm from 'remark-gfm';
import remark2rehype from 'remark-rehype';
import remarkParse from 'remark-parse';
import stringify from 'rehype-stringify';
import rehypeVideo from '../src';
import rehypeVideo from '../src/index.js';

it('rehype-video title test case', () => {
const mrkStr = `https://github.com/002.mp4?!#title=rehype-video`;
Expand Down

0 comments on commit 43205d6

Please sign in to comment.