Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it('runExplorer', () => {
- const filePath = "./tests/assets/template.html";
- const elementId = "draggableWindow";
- window.setTimeout(async () => {
- const items = await Dbc.Dom.loadTemplate({
- id : elementId,
- path : filePath
- });
- debugger;
- const explorer = new ExplorerApp();
- const template = items[0];
- expect(Dbc.Contract.isPrototypeOf(template, HTMLElement));
- expect(Dbc.Contract.isTrue(template.id === elementId));
- expect(Dbc.Contract.isPrototypeOf(explorer, ExplorerApp));
- done();
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement