mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 15:28:40 +08:00
adds QUnit test helper simplifying usage of #qunit-fixture
This commit is contained in:
parent
706f96af0a
commit
89d33c5f3f
@ -40,3 +40,10 @@ function asyncTestDiscourse(text, func) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fixture(selector) {
|
||||||
|
if (selector) {
|
||||||
|
return $("#qunit-fixture").find(selector);
|
||||||
|
}
|
||||||
|
return $("#qunit-fixture");
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user