-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: update docs/ja * Update testing-SFCs-with-karma.md * Update testing-SFCs-with-karma.md * Update testing-SFCs-with-karma.md * Update testing-SFCs-with-karma.md * Update testing-SFCs-with-karma.md
- Loading branch information
1 parent
b6c6f6c
commit f8ce240
Showing
12 changed files
with
259 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# visible() | ||
|
||
`WrapperArray` 内のすべての `Wrapper` が表示されているかアサートします。 | ||
|
||
style が `display: none` か `visibility: hidden` の親要素を持つ `Wrapper` が少なくとも1つある場合、 false を返します。 | ||
|
||
コンポーネントが `v-show` によって非表示になっているかアサートすることに使用することができます。 | ||
|
||
- **戻り値:** `{boolean}` | ||
|
||
- **例:** | ||
|
||
```js | ||
import { mount } from 'vue-test-utils' | ||
import { expect } from 'chai' | ||
import Foo from './Foo.vue' | ||
|
||
const wrapper = mount(Foo) | ||
expect(wrapper.visible()).toBe(true) | ||
expect(wrapper.findAll('.is-not-visible').visible()).toBe(false) | ||
expect(wrapper.findAll('.is-visible').visible()).toBe(true) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# visible() | ||
|
||
`Wrapper` が表示されているかアサートします。 | ||
|
||
style が `display: none` か `visibility: hidden` の親要素がある場合、 false を返します。 | ||
|
||
コンポーネントが `v-show` によって非表示になっているかアサートすることに使用することができます。 | ||
|
||
- **戻り値:** `{boolean}` | ||
|
||
- **例:** | ||
|
||
```js | ||
import { mount } from 'vue-test-utils' | ||
import { expect } from 'chai' | ||
import Foo from './Foo.vue' | ||
|
||
const wrapper = mount(Foo) | ||
expect(wrapper.visible()).toBe(true) | ||
expect(wrapper.find('.is-not-visible').visible()).toBe(false) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.