Skip to content

Commit

Permalink
🐛 fix assertion for column width in test suite (#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux authored and ggrossetie committed Oct 22, 2021
1 parent 1b42e7e commit da3acd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/spec/share/asciidoctor-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,11 @@ The 'reftext' attribute can an also be set by the 'BlockId' element.
|====`
const html = asciidoctor.convert(content)
expect(html).to.include('<table ')
expect(html).to.include('width: 14.2857%')
if (testOptions.coreVersion.gte('2.1.0')) {
expect(html).to.include(' width="14.2857%"')
} else {
expect(html).to.include('width: 14.2857%')
}
})

it('should convert a conditional expression', function () {
Expand Down

0 comments on commit da3acd2

Please sign in to comment.