mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-10 06:52:05 +01:00
10 lines
329 B
JavaScript
10 lines
329 B
JavaScript
describe('html templates', function () {
|
|
var html = core.html;
|
|
|
|
it('should compile template', function() {
|
|
var t = "<div>{m.name}</div>";
|
|
var compiled = html.compileTemplate(t);
|
|
expect(typeof compiled).toBe("function");
|
|
expect(compiled({name: 'test'})).toBe('<div>test</div>');
|
|
});
|
|
}); |