From b49732178191ed0db569b70b0690799e5cfb6e37 Mon Sep 17 00:00:00 2001
From: curbengh <43627182+curbengh@users.noreply.github.com>
Date: Mon, 7 Oct 2019 13:18:45 +0100
Subject: [PATCH] test(asset_img): attribute shouldn't be similar to value,
unless it's boolean
- https://github.com/hexojs/hexo-util/commit/622167f3cf98f08436b0fb0bc1a7bc7ec00904f4
---
test/scripts/tags/asset_img.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/test/scripts/tags/asset_img.js b/test/scripts/tags/asset_img.js
index 0adc7e60cb..d8f0709c09 100644
--- a/test/scripts/tags/asset_img.js
+++ b/test/scripts/tags/asset_img.js
@@ -50,7 +50,7 @@ describe('asset_img', () => {
});
it('default', () => {
- assetImg('bar title').should.eql('');
+ assetImg('bar "a title"').should.eql('');
});
it('with space', () => {
@@ -60,13 +60,13 @@ describe('asset_img', () => {
});
it('with alt and title', () => {
- assetImgTag.call(post, ['bar', '"title"', '"alt"'])
- .should.eql('');
+ assetImgTag.call(post, ['bar', '"a title"', '"an alt"'])
+ .should.eql('');
});
it('with width height alt and title', () => {
- assetImgTag.call(post, ['bar', '100', '200', '"title"', '"alt"'])
- .should.eql('');
+ assetImgTag.call(post, ['bar', '100', '200', '"a title"', '"an alt"'])
+ .should.eql('');
});
it('no slug', () => {