Skip to content

Commit

Permalink
lint: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Dec 4, 2024
1 parent 7bdb99e commit e539b63
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/attributes.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { describe } from 'vitest'
import { describe, expect } from 'vitest'
import { runMarkdownTests } from './utils'
import { expect } from 'vitest'

describe('Attributes', () => {
runMarkdownTests({
Expand Down Expand Up @@ -62,13 +61,13 @@ describe('Attributes', () => {
'emphasis': {
markdown: '_emphasis_{#id .class}',
},
ignoreEscapeAttrInNormalAttribute: {
'ignoreEscapeAttrInNormalAttribute': {
markdown: ':copy{code="D:\\\\Software\\\\"}',
expected: ':copy{code="D:\\Software\\"}',
extra: (_md, ast) => {
expect(ast.children[0].type).toBe('textComponent')
expect(ast.children[0].attributes.code).toBe('D:\\Software\\')
}
},
},
'nested-in-table': {
markdown: [
Expand Down

0 comments on commit e539b63

Please sign in to comment.