Chatwoot/app/javascript/shared/components/specs/DateSeparator.spec.js
Muhsin Keloth 3e61ea5cfa
feat: Change the date format display in widget (#1528)
Co-authored-by: Pranav <pranav@chatwoot.com>
2020-12-24 18:53:47 +05:30

17 lines
419 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.isVueInstance()).toBeTruthy();
expect(wrapper.element).toMatchSnapshot();
});
});