Skip to content

Commit

Permalink
test: Add test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 30, 2021
1 parent 61b5f9b commit e0998fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/index.test.ts
Expand Up @@ -40,6 +40,8 @@ describe('rehype-attr function test case', () => {
expect(visit(node)).toBeUndefined()
expect(visit(node, 'element')).toBeUndefined()
expect(visit(node, 'element', () => {})).toBeUndefined()
expect(visit({ type: 'root' }, 'element', () => {})).toBeUndefined()
expect(visit({ type: 'root', children: [ { type: 'element' }] }, 'element', () => {})).toBeUndefined()
expect(visit()).toBeUndefined()
expect(visit(undefined)).toBeUndefined()
expect(visit(undefined, undefined)).toBeUndefined()
Expand Down

0 comments on commit e0998fa

Please sign in to comment.