Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/cypress-mount-mode' of github.com:bahmutov/cypr…
Browse files Browse the repository at this point in the history
…ess-vue-unit-test into feature/cypress-mount-mode
  • Loading branch information
JessicaSachs committed Apr 27, 2020
2 parents 029de14 + f8c1215 commit e43c206
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ The mount function automatically wraps XMLHttpRequest giving you an ability to i
```js
// component use axios to get list of users
created() {
axios.get(`http://jsonplaceholder.typicode.com/users?_limit=3`)
axios.get(`https://jsonplaceholder.cypress.io/users?_limit=3`)
.then(response => {
// JSON responses are automatically parsed.
this.users = response.data
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/basic/message-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Message', () => {
const stub = cy.spy()
Cypress.vue.$on('message-clicked', stub)
cy.get('.message').click().then(() => {
expect(stub).to.be.called.once
expect(stub).to.be.calledOnce
expect(stub).to.be.calledWith('Cat')
})
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/component/xhr/AjaxList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
// Fetches posts when the component is created.
created() {
axios.get('http://jsonplaceholder.typicode.com/users?_limit=3')
axios.get('https://jsonplaceholder.cypress.io/users?_limit=3')
.then(response => {
// JSON responses are automatically parsed.
this.users = response.data
Expand Down
32 changes: 31 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e43c206

Please sign in to comment.