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

Commit e43c206

Browse files
committed
Merge branch 'feature/cypress-mount-mode' of github.com:bahmutov/cypress-vue-unit-test into feature/cypress-mount-mode
2 parents 029de14 + f8c1215 commit e43c206

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ The mount function automatically wraps XMLHttpRequest giving you an ability to i
597597
```js
598598
// component use axios to get list of users
599599
created() {
600-
axios.get(`http://jsonplaceholder.typicode.com/users?_limit=3`)
600+
axios.get(`https://jsonplaceholder.cypress.io/users?_limit=3`)
601601
.then(response => {
602602
// JSON responses are automatically parsed.
603603
this.users = response.data

cypress/component/basic/message-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('Message', () => {
6464
const stub = cy.spy()
6565
Cypress.vue.$on('message-clicked', stub)
6666
cy.get('.message').click().then(() => {
67-
expect(stub).to.be.called.once
67+
expect(stub).to.be.calledOnce
6868
expect(stub).to.be.calledWith('Cat')
6969
})
7070
})

cypress/component/xhr/AjaxList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
2222
// Fetches posts when the component is created.
2323
created() {
24-
axios.get('http://jsonplaceholder.typicode.com/users?_limit=3')
24+
axios.get('https://jsonplaceholder.cypress.io/users?_limit=3')
2525
.then(response => {
2626
// JSON responses are automatically parsed.
2727
this.users = response.data

package-lock.json

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)