chore: replaced == and != with === and !=== (#10733)

This commit is contained in:
NoxiousPenguin 2022-02-05 00:41:15 -05:00 committed by GitHub
parent f91f860d1e
commit abb3aebbba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ describe("Generate New CRUD Page Inside from Mongo as Data Source", function() {
});
beforeEach(function() {
if (Cypress.env("Mongo") == 0) {
if (Cypress.env("Mongo") === 0) {
cy.log("Mongo DB is not found. Using intercept");
cy.startInterceptRoutesForMongo();
} else cy.log("Mongo DB is found, hence using actual DB");
@ -22,7 +22,7 @@ describe("Generate New CRUD Page Inside from Mongo as Data Source", function() {
cy.NavigateToDatasourceEditor();
cy.get(datasource.MongoDB).click({ force: true });
if (Cypress.env("Mongo") == 0) cy.fillMongoDatasourceFormWithURI();
if (Cypress.env("Mongo") === 0) cy.fillMongoDatasourceFormWithURI();
else cy.fillMongoDatasourceForm();
cy.generateUUID().then((uid) => {
@ -114,7 +114,7 @@ describe("Generate New CRUD Page Inside from Mongo as Data Source", function() {
cy.get(datasource.MongoDB).click();
if (Cypress.env("Mongo") == 0) cy.fillMongoDatasourceFormWithURI();
if (Cypress.env("Mongo") === 0) cy.fillMongoDatasourceFormWithURI();
else cy.fillMongoDatasourceForm();
cy.generateUUID().then((uid) => {

View File

@ -12,7 +12,7 @@ describe("Generate New CRUD Page Inside from My SQL as Data Source", function()
});
beforeEach(function() {
if (Cypress.env("MySQL") == 0) {
if (Cypress.env("MySQL") === 0) {
cy.log("MySQL DB is not found. Using intercept");
cy.startInterceptRoutesForMySQL();
} else cy.log("MySQL DB is found, hence using actual DB");

View File

@ -3457,7 +3457,7 @@ Cypress.Commands.add("clearPropertyValue", (value) => {
.type("{uparrow}", { force: true })
.type("{ctrl}{shift}{downarrow}", { force: true });
cy.focused().then(($cm) => {
if ($cm.contents != "") {
if ($cm.contents !== "") {
cy.log("The field is empty");
cy.get(".CodeMirror textarea")
.eq(value)
@ -3544,7 +3544,7 @@ Cypress.Commands.add(
.click({ force: true })
.wait(500);
if (action == "Delete")
if (action === "Delete")
cy.xpath("//div[text()='" + entityNameinLeftSidebar + "']").should(
"not.exist",
);

View File

@ -70,7 +70,7 @@ async function getPageRetry(pageId, retries) {
}
}
if (page == null) {
if (page === null) {
throw new Error("Tried getting page " + retries + " times, but failed.");
}