Upgrade QUnit to latest version

This commit is contained in:
Robin Ward
2017-06-14 13:57:58 -04:00
parent 8ae445766f
commit cc525b1a8d
145 changed files with 7569 additions and 6763 deletions

View File

@@ -1,7 +1,7 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Search");
test("search", (assert) => {
QUnit.test("search", (assert) => {
visit("/");
click('#search-button');
@@ -25,29 +25,29 @@ test("search", (assert) => {
});
});
test("search scope checkbox", () => {
QUnit.test("search scope checkbox", assert => {
visit("/c/bug");
click('#search-button');
andThen(() => {
ok(exists('.search-context input:checked'), 'scope to category checkbox is checked');
assert.ok(exists('.search-context input:checked'), 'scope to category checkbox is checked');
});
click('#search-button');
visit("/t/internationalization-localization/280");
click('#search-button');
andThen(() => {
not(exists('.search-context input:checked'), 'scope to topic checkbox is not checked');
assert.not(exists('.search-context input:checked'), 'scope to topic checkbox is not checked');
});
click('#search-button');
visit("/u/eviltrout");
click('#search-button');
andThen(() => {
ok(exists('.search-context input:checked'), 'scope to user checkbox is checked');
assert.ok(exists('.search-context input:checked'), 'scope to user checkbox is checked');
});
});
test("Search with context", assert => {
QUnit.test("Search with context", assert => {
visit("/t/internationalization-localization/280/1");
click('#search-button');
@@ -72,4 +72,4 @@ test("Search with context", assert => {
andThen(() => {
assert.ok(!$('.search-context input[type=checkbox]').is(":checked"));
});
});
});