mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Replace equal() with strictEqual() (#14827)
This commit is contained in:
@@ -21,7 +21,7 @@ function exists(selector) {
|
||||
test("Wizard starts", async function (assert) {
|
||||
await visit("/");
|
||||
assert.ok(exists(".wizard-column-contents"));
|
||||
assert.equal(currentRouteName(), "step");
|
||||
assert.strictEqual(currentRouteName(), "step");
|
||||
});
|
||||
|
||||
test("Going back and forth in steps", async function (assert) {
|
||||
|
||||
@@ -21,7 +21,7 @@ componentTest("can add users", {
|
||||
);
|
||||
|
||||
const firstVal = JSON.parse(this.get("field.value"));
|
||||
assert.equal(firstVal.length, 0, "empty JSON at first");
|
||||
assert.strictEqual(firstVal.length, 0, "empty JSON at first");
|
||||
|
||||
assert.ok(
|
||||
this.get("field.warning"),
|
||||
@@ -45,8 +45,8 @@ componentTest("can add users", {
|
||||
assert.ok(document.querySelectorAll(".new-user .invalid").length === 0);
|
||||
|
||||
const val = JSON.parse(this.get("field.value"));
|
||||
assert.equal(val.length, 1);
|
||||
assert.equal(
|
||||
assert.strictEqual(val.length, 1);
|
||||
assert.strictEqual(
|
||||
val[0].email,
|
||||
"eviltrout@example.com",
|
||||
"adds the email to the JSON"
|
||||
|
||||
Reference in New Issue
Block a user