Skip to content

Commit 7fd9667

Browse files
Update cypress/support/commands.js
Co-authored-by: Alisha Evans <[email protected]>
1 parent 5c4deeb commit 7fd9667

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cypress/support/commands.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ Cypress.Commands.add('login', (username, password) => {
4141
// intercepts requests and creates potential cases for loading, error, data, and empty data
4242
// required params are action, defaultFixture, requestURL
4343
// optional params such as data, loading, and error can be passed depending on the creation of test cases that are related to that specific api call
44-
Cypress.Commands.add('customApiIntercept', ({ action, alias, data, defaultFixture, emptyFixture, error, errorCaseStatusCode, loading, requestURL }) => {
44+
Cypress.Commands.add('customApiIntercept', ({
45+
action, alias, data, defaultFixture, emptyFixture, error, errorCaseStatusCode, loading, requestURL
46+
}) => {
4547
cy.intercept(action, scientistApiBaseURL + requestURL, (req) => {
4648
switch (true) {
4749
// reply with an empty response: both data and error will be undefined.

0 commit comments

Comments
 (0)