Skip to content

Commit 30d9d17

Browse files
committed
fix: isNull
1 parent bf4a613 commit 30d9d17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/javascript/tests/client/tests.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ describe('{{testType}}', () => {
1212
{{/times}}
1313
{{#isError}}
1414
try {
15+
// @ts-ignore
1516
{{#dynamicTemplate}}{{/dynamicTemplate}}
1617
throw new Error('test is expected to throw error');
1718
} catch(e) {
@@ -39,7 +40,7 @@ describe('{{testType}}', () => {
3940
expect(result).toEqual("{{{match.value}}}");
4041
{{/match.isString}}
4142
{{^match.isString}}
42-
expect(result).toEqual({{{match.value}}});
43+
expect(result).toEqual({{^match.isNull}}{{{match.value}}}{{/match.isNull}}{{#match.isNull}}null{{/match.isNull}});
4344
{{/match.isString}}
4445
{{/match.isPrimitive}}
4546
{{^match.isPrimitive}}

0 commit comments

Comments
 (0)