Skip to content

docs: update docs/ja #648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/ja/api/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ vue-test-utils にはオプションを定義するための `config` オプシ

コンポーネントで使用するスタブはマウンティングオプションの `stubs` で設定します。

マウンティングオプションの `stubs` が配列である場合、`config.stubs` は配列に変換されます。その場合、使用されるスタブは`<!---->`を返す基本的なコンポーネントになります。
マウンティングオプションの `stubs` が配列である場合、`config.stubs` は配列に変換されます。その場合、使用されるスタブは`<${component name}-stub>`を返す基本的なコンポーネントになります。

例:

Expand Down
2 changes: 1 addition & 1 deletion docs/ja/api/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ expect(wrapper.find('#fooWrapper').html()).toBe('<div id="fooWrapper"><p>0,text1

- type: `{ [name: string]: Component | boolean } | Array<string>`

子コンポーネントをスタブします。スタブまたはオブジェクトに対するコンポーネント名の配列になります。`stubs` が配列の場合、すべてのスタブは `<!---->` になります。
子コンポーネントをスタブします。スタブまたはオブジェクトに対するコンポーネント名の配列になります。`stubs` が配列の場合、すべてのスタブは `<${component name}-stub>` になります。

例:

Expand Down
9 changes: 6 additions & 3 deletions docs/ja/api/wrapper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ vue-test-utils はラッパベースの API です。

### `options`

`Object`: `mount` または `shallowMount` に渡された vue-test-utils オプションを含むオブジェクト
#### `options.attachedToDocument`

#### `options.attachedToDom`
`Boolean`: マウンティングオプションで `attachedToDocument` が `true` だった場合は True です。

`Boolean`: `mount` か `shallowMount` に渡された場合は True です。

#### `options.sync`

`Boolean`: マウンティングオプションで `sync` が `false` ではなかった場合は True です。  

## メソッド

Expand Down