mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-27 23:29:52 -04:00
adds QUnit test helper simplifying usage of #qunit-fixture
This commit is contained in:
parent
706f96af0a
commit
89d33c5f3f
1 changed files with 8 additions and 1 deletions
|
@ -39,4 +39,11 @@ function asyncTestDiscourse(text, func) {
|
|||
func.call(self);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function fixture(selector) {
|
||||
if (selector) {
|
||||
return $("#qunit-fixture").find(selector);
|
||||
}
|
||||
return $("#qunit-fixture");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue