Update tests

This commit is contained in:
alxshelepenok
2018-11-11 14:51:07 +03:00
parent cca1567f16
commit 55e877a81b
15 changed files with 30 additions and 22 deletions

View File

@@ -5,7 +5,7 @@ import Meta from './Meta';
describe('Meta', () => {
it('renders correctly', () => {
const props = {
date: '2016-09-01T23:46:37.121Z'
date: '2016-09-01'
};
const tree = renderer.create(<Meta {...props} />).toJSON();

View File

@@ -8,7 +8,7 @@ exports[`Meta renders correctly 1`] = `
className="meta__date"
>
Published
2 Sep 2016
1 Sep 2016
</p>
</div>
`;

View File

@@ -13,7 +13,7 @@ describe('Post', () => {
]
},
frontmatter: {
date: '2016-09-01T23:46:37.121Z',
date: '2016-09-01',
tags: [
'test_0',
'test_1'

View File

@@ -41,7 +41,7 @@ exports[`Post renders correctly 1`] = `
className="meta__date"
>
Published
2 Sep 2016
1 Sep 2016
</p>
</div>
<div