mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-26 05:22:28 +01:00
Update tests
This commit is contained in:
parent
cca1567f16
commit
55e877a81b
@ -12,7 +12,7 @@ describe('Feed', () => {
|
||||
categorySlug: '/test_0'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_0',
|
||||
category: 'test_0',
|
||||
title: 'test_0'
|
||||
@ -26,7 +26,7 @@ describe('Feed', () => {
|
||||
categorySlug: '/test_1'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_1',
|
||||
category: 'test_1',
|
||||
title: 'test_1'
|
||||
|
@ -12,7 +12,7 @@ exports[`Feed renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -60,7 +60,7 @@ exports[`Feed renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
|
@ -9,6 +9,7 @@ exports[`Pagination renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__prev-link"
|
||||
rel="prev"
|
||||
to="/page/1"
|
||||
>
|
||||
← PREV
|
||||
@ -19,6 +20,7 @@ exports[`Pagination renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__next-link"
|
||||
rel="next"
|
||||
to="/page/3"
|
||||
>
|
||||
→ NEXT
|
||||
|
@ -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();
|
||||
|
@ -8,7 +8,7 @@ exports[`Meta renders correctly 1`] = `
|
||||
className="meta__date"
|
||||
>
|
||||
Published
|
||||
2 Sep 2016
|
||||
1 Sep 2016
|
||||
</p>
|
||||
</div>
|
||||
`;
|
||||
|
@ -13,7 +13,7 @@ describe('Post', () => {
|
||||
]
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
tags: [
|
||||
'test_0',
|
||||
'test_1'
|
||||
|
@ -41,7 +41,7 @@ exports[`Post renders correctly 1`] = `
|
||||
className="meta__date"
|
||||
>
|
||||
Published
|
||||
2 Sep 2016
|
||||
1 Sep 2016
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
|
@ -32,7 +32,7 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -80,7 +80,7 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -129,6 +129,7 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__prev-link"
|
||||
rel="prev"
|
||||
to="/page/1"
|
||||
>
|
||||
← PREV
|
||||
@ -139,6 +140,7 @@ exports[`CategoryTemplate renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__next-link"
|
||||
rel="next"
|
||||
to="/page/3"
|
||||
>
|
||||
→ NEXT
|
||||
|
@ -27,7 +27,7 @@ exports[`IndexTemplate renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -75,7 +75,7 @@ exports[`IndexTemplate renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -124,6 +124,7 @@ exports[`IndexTemplate renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__prev-link"
|
||||
rel="prev"
|
||||
to="/page/1"
|
||||
>
|
||||
← PREV
|
||||
@ -134,6 +135,7 @@ exports[`IndexTemplate renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__next-link"
|
||||
rel="next"
|
||||
to="/page/3"
|
||||
>
|
||||
→ NEXT
|
||||
|
@ -44,7 +44,7 @@ exports[`PostTemplate renders correctly 1`] = `
|
||||
className="meta__date"
|
||||
>
|
||||
Published
|
||||
2 Sep 2016
|
||||
1 Sep 2016
|
||||
</p>
|
||||
</div>
|
||||
<div
|
||||
|
@ -32,7 +32,7 @@ exports[`TagTemplate renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -80,7 +80,7 @@ exports[`TagTemplate renders correctly 1`] = `
|
||||
>
|
||||
<time
|
||||
className="feed__item-meta-time"
|
||||
dateTime="September 2, 2016"
|
||||
dateTime="September 1, 2016"
|
||||
>
|
||||
September 2016
|
||||
</time>
|
||||
@ -129,6 +129,7 @@ exports[`TagTemplate renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__prev-link"
|
||||
rel="prev"
|
||||
to="/page/1"
|
||||
>
|
||||
← PREV
|
||||
@ -139,6 +140,7 @@ exports[`TagTemplate renders correctly 1`] = `
|
||||
>
|
||||
<Link
|
||||
className="pagination__next-link"
|
||||
rel="next"
|
||||
to="/page/3"
|
||||
>
|
||||
→ NEXT
|
||||
|
@ -24,7 +24,7 @@ describe('CategoryTemplate', () => {
|
||||
categorySlug: '/test'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_0',
|
||||
category: 'test',
|
||||
title: 'test_0'
|
||||
@ -38,7 +38,7 @@ describe('CategoryTemplate', () => {
|
||||
categorySlug: '/test'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_1',
|
||||
category: 'test',
|
||||
title: 'test_1'
|
||||
|
@ -14,7 +14,7 @@ describe('IndexTemplate', () => {
|
||||
categorySlug: '/test_0'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_0',
|
||||
category: 'test_0',
|
||||
title: 'test_0'
|
||||
@ -28,7 +28,7 @@ describe('IndexTemplate', () => {
|
||||
categorySlug: '/test_1'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_1',
|
||||
category: 'test_1',
|
||||
title: 'test_1'
|
||||
|
@ -20,7 +20,7 @@ describe('PostTemplate', () => {
|
||||
]
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test',
|
||||
title: 'test',
|
||||
tags: [
|
||||
|
@ -24,7 +24,7 @@ describe('TagTemplate', () => {
|
||||
categorySlug: '/test'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_0',
|
||||
category: 'test',
|
||||
title: 'test_0'
|
||||
@ -38,7 +38,7 @@ describe('TagTemplate', () => {
|
||||
categorySlug: '/test'
|
||||
},
|
||||
frontmatter: {
|
||||
date: '2016-09-01T23:46:37.121Z',
|
||||
date: '2016-09-01',
|
||||
description: 'test_1',
|
||||
category: 'test',
|
||||
title: 'test_1'
|
||||
|
Loading…
Reference in New Issue
Block a user