Commit code with double quotes instead of single quotes

This commit is contained in:
Dmitry Yankowski
2020-02-24 21:06:23 -05:00
parent 3bd7c00038
commit 48100ead55
74 changed files with 3184 additions and 3184 deletions

View File

@@ -5,15 +5,15 @@
* @param { String } path The path or query parameters to go -ex. '/?path=/api/users'
* @param { String } method The fake request method
*/
Cypress.Commands.add('seedAndVisit', (seedData, path = '/', method = 'GET') => {
Cypress.Commands.add("seedAndVisit", (seedData, path = "/", method = "GET") => {
cy.server()
.route(method, 'https://api.thecatapi.com/', `fixture:${seedData}`)
.as('load')
.route(method, "https://api.thecatapi.com/", `fixture:${seedData}`)
.as("load")
cy.visit(path)
.get('#send')
.get("#send")
.click()
.wait('@load')
.wait("@load")
})
/**
@@ -21,11 +21,11 @@ Cypress.Commands.add('seedAndVisit', (seedData, path = '/', method = 'GET') => {
* This function will enable the proxy and navigate back to a given path
* @param { String } goBackPath The page go back
*/
Cypress.Commands.add('enableProxy', goBackPath => {
cy.visit('/settings')
.get('#proxy')
.find('.toggle')
Cypress.Commands.add("enableProxy", goBackPath => {
cy.visit("/settings")
.get("#proxy")
.find(".toggle")
.click({ force: true })
.should('have.class', 'on')
.should("have.class", "on")
.visit(goBackPath)
})

View File

@@ -1 +1 @@
import './commands'
import "./commands"