Skip to content

Commit

Permalink
Restrict dom selector assertion to the qunit fixture element 馃Θ
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeJab committed Feb 5, 2020
1 parent 2cad059 commit 2e2d60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/helpers/assertions.js
Expand Up @@ -138,7 +138,7 @@ export default function registerAssertions(QUnit) {

QUnit.assert.hasElement = function(selector,
message=`hasElement "${selector}"`) {
let found = $(selector);
let found = $('#qunit-fixture').find(selector);
this.pushResult({
result: found.length > 0,
actual: `${found.length} matches for '${selector}'`,
Expand Down

0 comments on commit 2e2d60a

Please sign in to comment.