We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b3e49c commit 1047ce5Copy full SHA for 1047ce5
1 file changed
test/test-core.spec.ts
@@ -3,6 +3,7 @@ import path from 'path';
3
import test from 'ava';
4
import render from '../src';
5
import {closingSingleTagOptionEnum, closingSingleTagTypeEnum, quoteStyleEnum} from '../types/index.d';
6
+import parser from 'posthtml-parser';
7
import tree from './templates/parser';
8
9
const html = fs.readFileSync(path.resolve(__dirname, 'templates/render.html'), 'utf8');
@@ -187,6 +188,14 @@ test('{Tree} {Empty}', t => {
187
188
t.is(render(), '');
189
});
190
191
+test.only('{Tree} {String Template}', t => {
192
+ const html = `
193
+ <div>String Template</div>
194
+ `;
195
+ const tree = parser(html);
196
+ t.is(html, render(tree));
197
+});
198
+
199
test('{Tree} {HTML}', t => {
200
t.is(html, render(tree));
201
0 commit comments