We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9374b8 commit 540e23eCopy full SHA for 540e23e
docs/api/options.md
@@ -47,16 +47,23 @@ Example:
47
48
```js
49
import Foo from './Foo.vue'
50
-import Bar from './Bar.vue'
+
51
+const bazComponent = {
52
+ name: 'baz-component',
53
+ template: '<p>baz</p>'
54
+}
55
56
const wrapper = shallowMount(Component, {
57
slots: {
- default: [Foo, Bar],
58
+ default: [Foo, '<my-component />', 'text'],
59
fooBar: Foo, // Will match `<slot name="FooBar" />`.
60
foo: '<div />',
- bar: 'bar'
61
+ bar: 'bar',
62
+ baz: bazComponent,
63
+ qux: '<my-component />'
64
}
65
})
66
67
expect(wrapper.find('div')).toBe(true)
68
```
69
0 commit comments