DEV: Fix linting (#127)

This commit is contained in:
Penar Musaraj 2020-12-30 15:56:00 -05:00 committed by GitHub
parent b824e19e91
commit 11f7dee7f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 44 deletions

View File

@ -1,13 +1,16 @@
import selectKit from "discourse/tests/helpers/select-kit-helper"; import selectKit from "discourse/tests/helpers/select-kit-helper";
import { acceptance, waitFor, updateCurrentUser } from "discourse/tests/helpers/qunit-helpers"; import {
acceptance,
waitFor,
updateCurrentUser,
} from "discourse/tests/helpers/qunit-helpers";
import { skip, test } from "qunit";
acceptance("Search - Full Page", function (needs) { acceptance("Search - Full Page", function (needs) {
needs.settings({ assign_enabled: true }); needs.settings({ assign_enabled: true });
needs.user(); needs.user();
test( test("update in:assigned filter through advanced search ui", async (assert) => {
"update in:assigned filter through advanced search ui",
async (assert) => {
updateCurrentUser({ can_assign: true }); updateCurrentUser({ can_assign: true });
const inSelector = selectKit(".search-advanced-options .select-kit#in"); const inSelector = selectKit(".search-advanced-options .select-kit#in");
@ -26,12 +29,9 @@ acceptance("Search - Full Page", function (needs) {
"none in:assigned", "none in:assigned",
'has updated search term to "none in:assinged"' 'has updated search term to "none in:assinged"'
); );
} });
);
test( test("update in:unassigned filter through advanced search ui", async (assert) => {
"update in:unassigned filter through advanced search ui",
async (assert) => {
updateCurrentUser({ can_assign: true }); updateCurrentUser({ can_assign: true });
const inSelector = selectKit(".search-advanced-options .select-kit#in"); const inSelector = selectKit(".search-advanced-options .select-kit#in");
@ -50,8 +50,7 @@ acceptance("Search - Full Page", function (needs) {
"none in:unassigned", "none in:unassigned",
'has updated search term to "none in:unassinged"' 'has updated search term to "none in:unassinged"'
); );
} });
);
skip("update assigned to through advanced search ui", async (assert) => { skip("update assigned to through advanced search ui", async (assert) => {
updateCurrentUser({ can_assign: true }); updateCurrentUser({ can_assign: true });