DEV: Remove most of jQuery usage from tests (#17474)

This commit is contained in:
Jarek Radosz
2022-07-13 19:29:19 +02:00
committed by GitHub
parent b6ed518631
commit 7b6cd44c32
60 changed files with 479 additions and 492 deletions
@@ -196,8 +196,9 @@ discourseModule("Unit | Controller | poll-ui-builder", function () {
controller.currentUser = { staff: false };
controller.notifyPropertyChange("pollResults");
assert.ok(
controller.pollResults.filterBy("value", "staff_only").length === 0,
assert.strictEqual(
controller.pollResults.filterBy("value", "staff_only").length,
0,
"staff_only is not present"
);
});
@@ -212,8 +213,9 @@ discourseModule("Unit | Controller | poll-ui-builder", function () {
controller.currentUser = { staff: true };
controller.notifyPropertyChange("pollResults");
assert.ok(
controller.pollResults.filterBy("value", "staff_only").length === 1,
assert.strictEqual(
controller.pollResults.filterBy("value", "staff_only").length,
1,
"staff_only is present"
);
});