made getAttrs correctly handle both ' and "
This commit is contained in:
parent
22c8f71945
commit
b0ae32e309
2 changed files with 3 additions and 3 deletions
|
@ -157,7 +157,7 @@ describe('MiniHtmlConverter', () => {
|
|||
|
||||
describe('getAttrs', () => {
|
||||
it('extracts arguments from tag', () => {
|
||||
const input = '<img src="boop" cool ebin="true">'
|
||||
const input = '<img src="boop" cool ebin=\'true\'>'
|
||||
const output = { src: 'boop', cool: true, ebin: 'true' }
|
||||
|
||||
expect(getAttrs(input)).to.eql(output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue