Comment.js 602 B

1234567891011121314151617
  1. describe("Comments", () => {
  2. loadLocalPage("Comment.html");
  3. afterInitialPageLoad(page => {
  4. test("Basic functionality", () => {
  5. const comment = page.document.body.firstChild.nextSibling;
  6. expect(comment).not.toBeNull();
  7. // FIXME: Add this in once Comment's constructor is implemented.
  8. //expect(comment).toBeInstanceOf(Comment);
  9. expect(comment.nodeName).toBe("#comment");
  10. expect(comment.data).toBe("This is a comment");
  11. expect(comment).toHaveLength(17);
  12. });
  13. });
  14. waitForPageToLoad();
  15. });