DEV: Replace equal() with strictEqual() (#14827)

This commit is contained in:
Jarek Radosz
2021-11-08 10:26:28 +01:00
committed by GitHub
parent 016aa06229
commit d162229758
263 changed files with 2827 additions and 2363 deletions

View File

@@ -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) {

View File

@@ -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"