Skip to content

Commit 0d17cf0

Browse files
committed
update test case for sub-template support again.
1 parent e201a70 commit 0d17cf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ test('test for sub-template include (`#id` as tpl, fetch tpl from script)', func
177177
var result;
178178
var tmpl = 'Hi, {@include "#juicer-sub-tmpl", subData}.';
179179
result = juicer(tmpl, {subData: {time: '2012-10-12'}});
180-
ok(result === 'Hi, 2012-10-12.', 'Passed!');
180+
ok(result.replace(/\s+/igm, '') === 'Hi,2012-10-12.', 'Passed!');
181181
});
182182

183183
test('test for sub-template include (get tpl from given data)', function() {
@@ -187,7 +187,7 @@ test('test for sub-template include (get tpl from given data)', function() {
187187
subTmpl: '${time}',
188188
subData: {time: '2012-10-12'}
189189
});
190-
ok(result.replace(/\s+/igm, '') === 'Hi,2012-10-12.', 'Passed!');
190+
ok(result === 'Hi, 2012-10-12.', 'Passed!');
191191
});
192192

193193
test('custom tag for if-else and interpolate', function() {

0 commit comments

Comments
 (0)