|
@@ -60,7 +60,7 @@ test('should close popover when clicking the list', async () => {
|
|
|
const wrapper = mount(Popover, {
|
|
const wrapper = mount(Popover, {
|
|
|
props: {
|
|
props: {
|
|
|
visible: true,
|
|
visible: true,
|
|
|
- actions: baseActions
|
|
|
|
|
|
|
+ list: baseActions
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -92,3 +92,12 @@ test('should change icon class prefix when using icon prop', () => {
|
|
|
|
|
|
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
expect(wrapper.html()).toMatchSnapshot();
|
|
|
});
|
|
});
|
|
|
|
|
+test('slots', () => {
|
|
|
|
|
+ const wrapper = mount(Popover, {
|
|
|
|
|
+ slots: {
|
|
|
|
|
+ content: () => 'Custom content'
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ expect(wrapper.html()).toMatchSnapshot();
|
|
|
|
|
+});
|