Chatwoot/app/javascript/shared/components/specs/DateSeparator.spec.js
2021-05-13 15:03:04 +05:30

17 lines
406 B
JavaScript

import { mount } from '@vue/test-utils';
import DateSeparator from '../DateSeparator';
describe('DateSeparator', () => {
test('matches snapshot', () => {
const wrapper = mount(DateSeparator, {
propsData: {
date: 'Nov 18, 2019',
},
mocks: {
$t: () => {},
},
});
expect(wrapper.vm).toBeTruthy();
expect(wrapper.element).toMatchSnapshot();
});
});