Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. it('runExplorer', () => {
  2.  
  3. const filePath = "./tests/assets/template.html";
  4. const elementId = "draggableWindow";
  5.  
  6. window.setTimeout(async () => {
  7. const items = await Dbc.Dom.loadTemplate({
  8. id : elementId,
  9. path : filePath
  10. });
  11.  
  12. debugger;
  13. const explorer = new ExplorerApp();
  14.  
  15. const template = items[0];
  16. expect(Dbc.Contract.isPrototypeOf(template, HTMLElement));
  17. expect(Dbc.Contract.isTrue(template.id === elementId));
  18. expect(Dbc.Contract.isPrototypeOf(explorer, ExplorerApp));
  19. done();
  20. });
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement