diff --git a/src/cell-group/test/__snapshots__/index.spec.js.snap b/src/cell-group/test/__snapshots__/index.spec.js.snap new file mode 100644 index 000000000..1906c7655 --- /dev/null +++ b/src/cell-group/test/__snapshots__/index.spec.js.snap @@ -0,0 +1,8 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should render title slot and match snapshot 1`] = ` +
Custom Title
+
+ +
+`; diff --git a/src/cell-group/test/index.spec.js b/src/cell-group/test/index.spec.js new file mode 100644 index 000000000..51b232904 --- /dev/null +++ b/src/cell-group/test/index.spec.js @@ -0,0 +1,12 @@ +import CellGroup from '..'; +import { mount } from '@vue/test-utils'; + +test('should render title slot and match snapshot', () => { + const wrapper = mount(CellGroup, { + slots: { + title: () => 'Custom Title', + }, + }); + + expect(wrapper.html()).toMatchSnapshot(); +});