Skip to content

Commit ca4d89b

Browse files
Jinjiangeddyerburgh
authored andcommitted
docs(zh-cn): removed chai from examples (#437 #439) (#442)
1 parent 871a582 commit ca4d89b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+12
-71
lines changed

docs/zh-cn/api/createLocalVue.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
```js
1313
import { createLocalVue, shallow } from '@vue/test-utils'
14-
import { expect } from 'chai'
1514
import Foo from './Foo.vue'
1615

1716
const localVue = createLocalVue()

docs/zh-cn/api/mount.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
```js
2121
import { mount } from '@vue/test-utils'
22-
import { expect } from 'chai'
2322
import Foo from './Foo.vue'
2423

2524
describe('Foo', () => {
@@ -34,7 +33,6 @@ describe('Foo', () => {
3433

3534
```js
3635
import { mount } from '@vue/test-utils'
37-
import { expect } from 'chai'
3836
import Foo from './Foo.vue'
3937

4038
describe('Foo', () => {
@@ -53,7 +51,6 @@ describe('Foo', () => {
5351

5452
```js
5553
import { mount } from '@vue/test-utils'
56-
import { expect } from 'chai'
5754
import Foo from './Foo.vue'
5855

5956
describe('Foo', () => {
@@ -69,7 +66,6 @@ describe('Foo', () => {
6966

7067
```js
7168
import { mount } from '@vue/test-utils'
72-
import { expect } from 'chai'
7369
import Foo from './Foo.vue'
7470
import Bar from './Bar.vue'
7571
import FooBar from './FooBar.vue'
@@ -92,7 +88,6 @@ describe('Foo', () => {
9288

9389
```js
9490
import { mount } from '@vue/test-utils'
95-
import { expect } from 'chai'
9691
import Foo from './Foo.vue'
9792

9893
describe('Foo', () => {
@@ -112,7 +107,6 @@ describe('Foo', () => {
112107

113108
```js
114109
import { mount } from '@vue/test-utils'
115-
import { expect } from 'chai'
116110
import Foo from './Foo.vue'
117111
import Bar from './Bar.vue'
118112
import Faz from './Faz.vue'

docs/zh-cn/api/options.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ expect(wrapper.is(Component)).toBe(true)
4545
示例:
4646

4747
```js
48-
import { expect } from 'chai'
4948
import Foo from './Foo.vue'
5049
import Bar from './Bar.vue'
5150

@@ -102,8 +101,6 @@ shallow(Component, {
102101
示例:
103102

104103
```js
105-
import { expect } from 'chai'
106-
107104
const $route = { path: 'http://www.example-path.com' }
108105
const wrapper = shallow(Component, {
109106
mocks: {
@@ -124,7 +121,6 @@ expect(wrapper.vm.$route.path).toBe($route.path)
124121
```js
125122
import { createLocalVue, mount } from '@vue/test-utils'
126123
import VueRouter from 'vue-router'
127-
import { expect } from 'chai'
128124
import Foo from './Foo.vue'
129125

130126
const localVue = createLocalVue()
@@ -197,5 +193,5 @@ const options = {
197193
}
198194
}
199195
const wrapper = mount(Component, options)
200-
expect(wrapper.text()).to.equal('aBC')
196+
expect(wrapper.text()).toBe('aBC')
201197
```

docs/zh-cn/api/selectors.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default {
3333

3434
```js
3535
import { shallow } from '@vue/test-utils'
36-
import { expect } from 'chai'
3736
import Foo from './Foo.vue'
3837

3938
const wrapper = shallow(Foo)

docs/zh-cn/api/shallow.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

2929
```js
3030
import { shallow } from '@vue/test-utils'
31-
import { expect } from 'chai'
3231
import Foo from './Foo.vue'
3332

3433
describe('Foo', () => {
@@ -43,7 +42,6 @@ describe('Foo', () => {
4342

4443
```js
4544
import { shallow } from '@vue/test-utils'
46-
import { expect } from 'chai'
4745
import Foo from './Foo.vue'
4846

4947
describe('Foo', () => {
@@ -62,7 +60,6 @@ describe('Foo', () => {
6260

6361
```js
6462
import { shallow } from '@vue/test-utils'
65-
import { expect } from 'chai'
6663
import Foo from './Foo.vue'
6764

6865
describe('Foo', () => {
@@ -79,7 +76,6 @@ describe('Foo', () => {
7976

8077
```js
8178
import { shallow } from '@vue/test-utils'
82-
import { expect } from 'chai'
8379
import Foo from './Foo.vue'
8480
import Bar from './Bar.vue'
8581
import FooBar from './FooBar.vue'
@@ -102,7 +98,6 @@ describe('Foo', () => {
10298

10399
```js
104100
import { shallow } from '@vue/test-utils'
105-
import { expect } from 'chai'
106101
import Foo from './Foo.vue'
107102

108103
describe('Foo', () => {

docs/zh-cn/api/wrapper-array/at.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
```js
1313
import { shallow } from '@vue/test-utils'
14-
import { expect } from 'chai'
1514
import Foo from './Foo.vue'
1615

1716
const wrapper = shallow(Foo)

docs/zh-cn/api/wrapper-array/contains.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
```js
1515
import { shallow } from '@vue/test-utils'
16-
import { expect } from 'chai'
1716
import Foo from './Foo.vue'
1817
import Bar from './Bar.vue'
1918

docs/zh-cn/api/wrapper-array/destroy.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
```js
88
import { mount } from '@vue/test-utils'
9-
import { expect } from 'chai'
109
import Foo from './Foo.vue'
1110

1211
const wrapper = mount(Foo)

docs/zh-cn/api/wrapper-array/hasAttribute.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
```js
1414
import { mount } from '@vue/test-utils'
15-
import { expect } from 'chai'
1615
import Foo from './Foo.vue'
1716

1817
const wrapper = mount(Foo)

docs/zh-cn/api/wrapper-array/hasClass.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
```js
1313
import { mount } from '@vue/test-utils'
14-
import { expect } from 'chai'
1514
import Foo from './Foo.vue'
1615

1716
const wrapper = mount(Foo)

0 commit comments

Comments
 (0)