Skip to content

Commit

Permalink
Merge pull request #33 from Turbo87/test-helpers-compat
Browse files Browse the repository at this point in the history
Ember: Convert `rootElement` to non-caching property
  • Loading branch information
Turbo87 authored Oct 21, 2017
2 parents 50864cc + 4711e33 commit 2e80af5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vendor/overwrite-qunit-dom-root-element.js
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
QUnit.assert.dom.rootElement = document.querySelector('#ember-testing');
Object.defineProperty(QUnit.assert.dom, 'rootElement', {
get: function() {
return document.querySelector('#ember-testing');
},
enumerable: true,
configurable: true,
});

0 comments on commit 2e80af5

Please sign in to comment.