2019-12-14 18:36:01 +00:00
|
|
|
import { mount } from '@vue/test-utils';
|
|
|
|
import DateSeparator from '../DateSeparator';
|
|
|
|
|
2020-12-24 13:23:47 +00:00
|
|
|
describe('DateSeparator', () => {
|
2019-12-14 18:36:01 +00:00
|
|
|
test('matches snapshot', () => {
|
|
|
|
const wrapper = mount(DateSeparator, {
|
|
|
|
propsData: {
|
|
|
|
date: 'Nov 18, 2019',
|
|
|
|
},
|
2020-12-24 13:23:47 +00:00
|
|
|
mocks: {
|
|
|
|
$t: () => {},
|
|
|
|
},
|
2019-12-14 18:36:01 +00:00
|
|
|
});
|
2021-05-13 09:33:04 +00:00
|
|
|
expect(wrapper.vm).toBeTruthy();
|
2019-12-14 18:36:01 +00:00
|
|
|
expect(wrapper.element).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|