Skip to content

Commit 2fd3d68

Browse files
committed
Updated Vue to 2.6.8. Updated other dependencies.
1 parent 6969a0b commit 2fd3d68

File tree

5 files changed

+3018
-2514
lines changed

5 files changed

+3018
-2514
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ class LoginView extends Vue {
548548

549549
#### 1. Mocking behavior in development
550550

551-
Let's say that you have email service which sends an email to given address, but you don't want to send real emails in DEV/TEST/UAT environments. You can create two different implementations of the same interface and register them conditionally:
551+
Let's say that you have an email service which sends emails to given address, but you don't want to send real emails in DEV/TEST/UAT environments. You can create two different implementations of the same interface and register them conditionally:
552552

553553
```js
554554
class RealEmailService {
@@ -572,6 +572,7 @@ if (process.env.NODE_ENV === "production") {
572572
container.bind("emailService").to(FakeEmailService);
573573
}
574574

575+
// order.service.js
575576
@Register("orderService", ["emailService"])
576577
class OrderService {
577578
constructor(emailService) {
@@ -1620,7 +1621,7 @@ We can use this component in any form:
16201621
<my-checkbox v-model="value"></my-checkbox>
16211622
```
16221623

1623-
If the component doesn't have `v-model` we can do all test just using `mount(MyCheckbox, { ... })`, but unfortunately, the component supports `v-model` and there is no way how model can be passed to the `mount()`. What we have to do is to create another component which uses the component under the test inside his template. The wrapper can also provide a value which will be passed to the v-model and which will be updated:
1624+
If the component doesn't have `v-model` we can do all test just using `mount(MyCheckbox, { ... })`, but unfortunately, the component supports `v-model` and there is no way how model can be passed to the `mount()`. What we have to do is to create another component which uses the component under the test inside its template. The wrapper can also provide a value which will be passed to the v-model and which will be updated:
16241625

16251626
```js
16261627
beforeEach(function () {

TODO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
1. Testing directive
66
1. Writing complex integration test for a component
77
1. Mocking router
8+
1. Inject/Provide
9+
1. Scoped slots
810
1. Inversify and mocking router/store in tests
911
1. Test coverage
1012

0 commit comments

Comments
 (0)