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 @@ acceptance("Details Button", function (needs) {
await popupMenu.expand();
await popupMenu.selectRowByValue("insertDetails");
assert.equal(
assert.strictEqual(
queryAll(".d-editor-input").val(),
`\n[details="${I18n.t("composer.details_title")}"]\n${I18n.t(
"composer.details_text"
@ -38,7 +38,7 @@ acceptance("Details Button", function (needs) {
await popupMenu.expand();
await popupMenu.selectRowByValue("insertDetails");
assert.equal(
assert.strictEqual(
queryAll(".d-editor-input").val(),
`\n[details="${I18n.t(
"composer.details_title"
@ -46,12 +46,12 @@ acceptance("Details Button", function (needs) {
"it should contain the right selected output"
);
assert.equal(
assert.strictEqual(
textarea.selectionStart,
21,
"it should start highlighting at the right position"
);
assert.equal(
assert.strictEqual(
textarea.selectionEnd,
37,
"it should end highlighting at the right position"
@ -65,7 +65,7 @@ acceptance("Details Button", function (needs) {
await popupMenu.expand();
await popupMenu.selectRowByValue("insertDetails");
assert.equal(
assert.strictEqual(
queryAll(".d-editor-input").val(),
`Before \n[details="${I18n.t(
"composer.details_title"
@ -73,12 +73,12 @@ acceptance("Details Button", function (needs) {
"it should contain the right output"
);
assert.equal(
assert.strictEqual(
textarea.selectionStart,
28,
"it should start highlighting at the right position"
);
assert.equal(
assert.strictEqual(
textarea.selectionEnd,
48,
"it should end highlighting at the right position"
@ -92,7 +92,7 @@ acceptance("Details Button", function (needs) {
await popupMenu.expand();
await popupMenu.selectRowByValue("insertDetails");
assert.equal(
assert.strictEqual(
queryAll(".d-editor-input").val(),
`Before \n\n[details="${I18n.t(
"composer.details_title"
@ -100,12 +100,12 @@ acceptance("Details Button", function (needs) {
"it should contain the right output"
);
assert.equal(
assert.strictEqual(
textarea.selectionStart,
29,
"it should start highlighting at the right position"
);
assert.equal(
assert.strictEqual(
textarea.selectionEnd,
49,
"it should end highlighting at the right position"
@ -127,7 +127,7 @@ acceptance("Details Button", function (needs) {
await popupMenu.expand();
await popupMenu.selectRowByValue("insertDetails");
assert.equal(
assert.strictEqual(
queryAll(".d-editor-input").val(),
`\n[details="${I18n.t(
"composer.details_title"

View File

@ -16,7 +16,7 @@ const defaultOpts = buildOptions({
test("details", function (assert) {
const cooked = (input, expected, text) => {
assert.equal(
assert.strictEqual(
new PrettyText(defaultOpts).cook(input),
expected.replace(/\/>/g, ">"),
text