zpt
Version:
Zenon Page Templates - JS (ZPT-JS)
20 lines (16 loc) • 509 B
JavaScript
;
var zz = require( 'zzdom' );
var zpt = require( '../../../js/app/main.js' );
var dictionary = require( './dictionary.js' );
var Qunit = require( 'qunit' );
// Parse template
zpt.run({
root: [ zz( '#t1-1' )[0], zz( '#t1-3' )[0] ],
dictionary: dictionary
});
// Unit tests
QUnit.test( "Multiroot test", function( assert ) {
assert.equal( zz('#t1-1').html() , "hello" );
assert.equal( zz('#t1-2').html() , "not rendered!" );
assert.equal( zz('#t1-3').html() , "hello" );
});