Skip to content

Commit 2cc35c1

Browse files
committed
remove space before colon
1 parent ce05f32 commit 2cc35c1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cypress/e2e/requests.cy.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,28 @@ describe('Viewing all requests', () => {
2424
cy.intercept('GET', `${scientistApiBaseURL}/quote_groups/mine.json`, (req) => {
2525
switch (true) {
2626
// reply with an empty response: both data and error will be undefined.
27-
case loading : req.reply()
27+
case loading: req.reply()
2828
break
2929

3030
// error will be defined
31-
case error : req.reply({ statusCode: 500 })
31+
case error: req.reply({ statusCode: 500 })
3232
break
3333

34-
case requestList : req.reply({ fixture: 'all-requests/requests.json' })
34+
case requestList: req.reply({ fixture: 'all-requests/requests.json' })
3535
break
3636

3737
// reply with a request body- default status code is 200
38-
case !requestList : req.reply({ fixture: 'all-requests/no-requests.json' })
38+
case !requestList: req.reply({ fixture: 'all-requests/no-requests.json' })
3939
break
4040
}
4141
})
4242
// Intercept the response from the endpoint that gets the default ware ID
4343
cy.intercept('GET', `${scientistApiBaseURL}/wares.json?q=make-a-request`, (req) => {
4444
switch (true) {
45-
case error : req.reply({ statusCode: 500 })
45+
case error: req.reply({ statusCode: 500 })
4646
break
4747

48-
default : req.reply({ fixture: 'all-requests/make-a-request.json' })
48+
default: req.reply({ fixture: 'all-requests/make-a-request.json' })
4949
break
5050
}
5151
})

0 commit comments

Comments
 (0)