dom-layer
Version:
Virtual DOM implementation.
25 lines (14 loc) • 420 B
JavaScript
var h = require('../helper/h');
var Text = require('../../src/node/text');
describe("Text", function() {
it("verifies the type value", function() {
expect(new Text().type).toBe('Text');
});
describe(".toHtml()", function() {
it('renders a text node', function() {
var text = new Text('<hello>');
var html = text.toHtml();
expect(html).toBe('<hello>');
});
});
});