UNPKG

html-document

Version:

Partial implementation of document, HTMLElement for node

16 lines (11 loc) 355 B
/* global test */ import assert from 'proclaim'; const expect = assert.strictEqual; const lib = '../../lib/'; const Comment = require(lib + 'Comment'); test('create a Comment Node', () => { let comment = new Comment('Hello'); expect(comment.data, 'Hello'); expect(comment.innerHTML, ''); expect(comment.outerHTML, '<!--Hello-->'); });