[Enhancement] Group widget messages by date (#363)

* [Enhancement] Group widget messages by date

* Update DateSeparator snapshot
This commit is contained in:
Pranav Raj S
2019-12-15 00:06:01 +05:30
committed by Sojan Jose
parent 7b63cbe1f7
commit cfc56705fd
11 changed files with 193 additions and 13 deletions

View File

@@ -0,0 +1,14 @@
import { mount } from '@vue/test-utils';
import DateSeparator from '../DateSeparator';
describe('Spinner', () => {
test('matches snapshot', () => {
const wrapper = mount(DateSeparator, {
propsData: {
date: 'Nov 18, 2019',
},
});
expect(wrapper.isVueInstance()).toBeTruthy();
expect(wrapper.element).toMatchSnapshot();
});
});

View File

@@ -0,0 +1,11 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Spinner matches snapshot 1`] = `
<div
class="date--separator"
>
Nov 18, 2019
</div>
`;