You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I just upgraded jsdomify from version 2.1.0 to 3.0.0 and code working in 2.1.0 now fails. Maybe there is something from JsDom that is not propery loaded in 3.0.0?
Testcase:
importjsdomifyfrom'jsdomify';constdescribe=require('mocha').describe;constit=require('mocha').it;constexpect=require('chai').expect;describe('jsdomify-3-failing-test',()=>{constfixture=`<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Fixture</title></head><body> <div id="mount"> </div></body></html>`;constacceptOnlyHTMLElelemnt=element=>{if(element){if(!(elementinstanceofHTMLElement)){thrownewTypeError('element parameter must be an HTMLElement');}}};before(()=>{jsdomify.create(fixture);});after(()=>{jsdomify.destroy();});it('should accept HTMLElement',function(){constelement=document.querySelector('#mount');expect(()=>{acceptOnlyHTMLElelemnt(element);}).to.not.throw(Error);expect(()=>{acceptOnlyHTMLElelemnt('bar');}).to.throw(TypeError);});});
The text was updated successfully, but these errors were encountered:
Hello,
I just upgraded jsdomify from version 2.1.0 to 3.0.0 and code working in 2.1.0 now fails. Maybe there is something from JsDom that is not propery loaded in 3.0.0?
Testcase:
The text was updated successfully, but these errors were encountered: