Initial prettier formatted files

This commit is contained in:
Dmitry Yankowski
2020-02-24 13:44:50 -05:00
parent 1543c990ca
commit 777e629b3d
83 changed files with 18556 additions and 19258 deletions

View File

@@ -1,9 +1,12 @@
describe('Proxy disabled - local request', () => {
it('Change default url with query and make a request to local cat api', () => {
cy.seedAndVisit('catapi', '/?url=https://api.thecatapi.com&path=')
.get('#url').then((el) => expect(el.val() === 'https://api.thecatapi.com').to.equal(true))
.get("#path").then((el) => expect(el.val() === '').to.equal(true))
.get('#response-details-wrapper').should($wrapper => {
.get('#url')
.then(el => expect(el.val() === 'https://api.thecatapi.com').to.equal(true))
.get('#path')
.then(el => expect(el.val() === '').to.equal(true))
.get('#response-details-wrapper')
.should($wrapper => {
expect($wrapper).to.contain('FAKE Cat API')
})
})
@@ -12,8 +15,10 @@ describe('Proxy disabled - local request', () => {
describe('Proxy enabled - external request', () => {
it('Enable the proxy and make a request to the real cat api', () => {
cy.enableProxy('/?url=https://api.thecatapi.com&path=')
.get('#send').click()
.get('#response-details-wrapper').should($wrapper => {
.get('#send')
.click()
.get('#response-details-wrapper')
.should($wrapper => {
expect($wrapper).to.contain('Cat API')
})
})