File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import path from 'path';
33import test from 'ava' ;
44import render from '../src' ;
55import { closingSingleTagOptionEnum , closingSingleTagTypeEnum , quoteStyleEnum } from '../types/index.d' ;
6+ import parser from 'posthtml-parser' ;
67import tree from './templates/parser' ;
78
89const html = fs . readFileSync ( path . resolve ( __dirname , 'templates/render.html' ) , 'utf8' ) ;
@@ -187,6 +188,14 @@ test('{Tree} {Empty}', t => {
187188 t . is ( render ( ) , '' ) ;
188189} ) ;
189190
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+
190199test ( '{Tree} {HTML}' , t => {
191200 t . is ( html , render ( tree ) ) ;
192201} ) ;
You can’t perform that action at this time.
0 commit comments