Skip to content

Commit

Permalink
test(asset_img): attribute shouldn't be similar to value, unless it's…
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh authored and Thomas Parisot committed Jan 17, 2020
1 parent 21403fc commit b497321
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/scripts/tags/asset_img.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('asset_img', () => {
});

it('default', () => {
assetImg('bar title').should.eql('<img src="/foo/bar" class="" title="title">');
assetImg('bar "a title"').should.eql('<img src="/foo/bar" class="" title="a title">');
});

it('with space', () => {
Expand All @@ -60,13 +60,13 @@ describe('asset_img', () => {
});

it('with alt and title', () => {
assetImgTag.call(post, ['bar', '"title"', '"alt"'])
.should.eql('<img src="/foo/bar" class="" title="title" alt="alt">');
assetImgTag.call(post, ['bar', '"a title"', '"an alt"'])
.should.eql('<img src="/foo/bar" class="" title="a title" alt="an alt">');
});

it('with width height alt and title', () => {
assetImgTag.call(post, ['bar', '100', '200', '"title"', '"alt"'])
.should.eql('<img src="/foo/bar" class="" width="100" height="200" title="title" alt="alt">');
assetImgTag.call(post, ['bar', '100', '200', '"a title"', '"an alt"'])
.should.eql('<img src="/foo/bar" class="" width="100" height="200" title="a title" alt="an alt">');
});

it('no slug', () => {
Expand Down

0 comments on commit b497321

Please sign in to comment.