Skip to content

Commit b29cf4b

Browse files
committed
Update == to === in test cases
1 parent 00f20cd commit b29cf4b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

js/test/root/teststrings.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ module.exports.teststrings = {
704704
} else {
705705
test.equal(str.formatChoice([params.num,params.pages], params), "0 items (many) on 0 pages (many).");
706706
}
707-
} else if (platform == "browser") {
707+
} else if (platform === "browser") {
708708
test.equal(str.formatChoice([params.num,params.pages], params), "0 items (many) on 0 pages (many).");
709709
} else {
710710
test.equal(str.formatChoice([params.num,params.pages], params), "0 items on 0 pages.");
@@ -3029,7 +3029,7 @@ module.exports.teststrings = {
30293029
} else {
30303030
test.equal(str.formatChoice(0), "Default items");
30313031
}
3032-
} else if (platform == "browser") {
3032+
} else if (platform === "browser") {
30333033
test.equal(str.formatChoice(0), "Default items");
30343034
} else {
30353035
test.equal(str.formatChoice(0), "There are no items.");
@@ -3255,7 +3255,7 @@ module.exports.teststrings = {
32553255
} else {
32563256
test.equal(str.formatChoice(0), "The item is one");
32573257
}
3258-
} else if (platform == "browser") {
3258+
} else if (platform === "browser") {
32593259
test.equal(str.formatChoice(0), "The item is one");
32603260
} else {
32613261
test.equal(str.formatChoice(0), "There are no items.");
@@ -3308,7 +3308,7 @@ module.exports.teststrings = {
33083308
} else {
33093309
test.equal(str.formatChoice(0), "Default items");
33103310
}
3311-
} else if (platform == "browser") {
3311+
} else if (platform === "browser") {
33123312
test.equal(str.formatChoice(0), "Default items");
33133313
} else {
33143314
test.equal(str.formatChoice(0), "There are no items.");
@@ -3339,7 +3339,7 @@ module.exports.teststrings = {
33393339
} else {
33403340
test.equal(str.formatChoice(0), "The items are many");
33413341
}
3342-
} else if (platform == "browser") {
3342+
} else if (platform === "browser") {
33433343
test.equal(str.formatChoice(0), "The items are many");
33443344
} else {
33453345
test.equal(str.formatChoice(0), "There are no items.");
@@ -3868,7 +3868,7 @@ module.exports.teststrings = {
38683868
} else {
38693869
test.equal(str.formatChoice(0), "The items are few");
38703870
}
3871-
} else if (platform == "browser") {
3871+
} else if (platform === "browser") {
38723872
test.equal(str.formatChoice(0), "The items are few");
38733873
} else {
38743874
test.equal(str.formatChoice(0), "There are no items.");
@@ -4112,7 +4112,7 @@ module.exports.teststrings = {
41124112
} else {
41134113
test.equal(str.formatChoice(5.2), "Default items"); // wrong result based on cldr41
41144114
}
4115-
} else if (platform == "browser") {
4115+
} else if (platform === "browser") {
41164116
test.equal(str.formatChoice(5.2), "Default items"); // wrong result based on cldr41
41174117
} else {
41184118
test.equal(str.formatChoice(5.2), "The items are few");
@@ -4230,7 +4230,7 @@ module.exports.teststrings = {
42304230
} else {
42314231
test.equal(str.formatChoice(0.0), "Default items");
42324232
}
4233-
} else if (platform == "browser") {
4233+
} else if (platform === "browser") {
42344234
test.equal(str.formatChoice(0.0), "Default items");
42354235
} else {
42364236
test.equal(str.formatChoice(0.0), "There are no items.");
@@ -4281,7 +4281,7 @@ module.exports.teststrings = {
42814281
} else {
42824282
test.equal(str.formatChoice(1.5), "The item is one");
42834283
}
4284-
} else if (platform == "browser") {
4284+
} else if (platform === "browser") {
42854285
test.equal(str.formatChoice(1.5), "The item is one");
42864286
} else {
42874287
test.equal(str.formatChoice(1.5), "Default items");
@@ -4590,7 +4590,7 @@ module.exports.teststrings = {
45904590
} else {
45914591
test.equal(str.formatChoice(3.1e6), "Default items"); // wrong result based on cldr41
45924592
}
4593-
} else if (platform == "browser") {
4593+
} else if (platform === "browser") {
45944594
test.equal(str.formatChoice(3.1e6), "Default items"); // wrong result based on cldr41
45954595
} else {
45964596
test.equal(str.formatChoice(3.1e6), "The items are many");
@@ -4621,7 +4621,7 @@ module.exports.teststrings = {
46214621
} else {
46224622
test.equal(str.formatChoice(2.1e6), "Default items"); // wrong result based on cldr41
46234623
}
4624-
} else if (platform == "browser") {
4624+
} else if (platform === "browser") {
46254625
test.equal(str.formatChoice(2.1e6), "Default items");
46264626
//wrong result based on cldr (tested on chrome 104.0)
46274627
} else {

js/test/units/testunitfmt_be_BY.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ module.exports.testunitfmt_be_BY = {
9494
} else {
9595
test.equal(str, "-16,666666666666668 градуса Цэльсія");
9696
}
97-
} else if (platform == "browser") {
97+
} else if (platform === "browser") {
9898
test.equal(str, "-16,666666666666668 градуса Цэльсія");
9999
} else {
100100
test.equal(str, "-16,666666666666668 градусы Цэльсія");

js/test/units/testunitfmt_usages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ module.exports.testunitfmt_usages = {
27972797
} else {
27982798
test.equal(str, "3,2 кубічнага метра");
27992799
}
2800-
} else if (platform == "browser") {
2800+
} else if (platform === "browser") {
28012801
test.equal(str, "3,2 кубічнага метра");
28022802
} else {
28032803
test.equal(str, "3,2 кубічныя метры");
@@ -2942,7 +2942,7 @@ module.exports.testunitfmt_usages = {
29422942
} else {
29432943
test.equal(str, "3,2 кубічнага метра");
29442944
}
2945-
} else if (platform == "browser") {
2945+
} else if (platform === "browser") {
29462946
test.equal(str, "3,2 кубічнага метра");
29472947
} else {
29482948
test.equal(str, "3,2 кубічныя метры");

0 commit comments

Comments
 (0)