- beforeEach(done => {
- jsdom.env('', (err, w) => {
- window = w;
- document = window.document;
- linkifier = new TestLinkifier();
- done();
- });
+ beforeEach(() => {
+ dom = new jsdom.JSDOM('');
+ window = dom.window;
+ document = window.document;
+ linkifier = new TestLinkifier();