fix(v2): hide read more button on non-truncated posts (#2240)

* fix(v2): hide read more button on non-truncated posts

* Update tests
This commit is contained in:
Alexey Pyltsyn 2020-01-24 08:31:07 +03:00 committed by Yangshun Tay
parent 894dbcff49
commit 5121ac013c
6 changed files with 12 additions and 7 deletions

View file

@ -57,6 +57,7 @@ describe('loadBlog', () => {
permalink: noDatePermalink,
title: 'no date',
},
truncated: false,
});
expect(
blogPosts.find(v => v.metadata.title === 'Happy 1st Birthday Slash!')
@ -76,6 +77,7 @@ describe('loadBlog', () => {
permalink: '/blog/2019/01/01/date-matter',
title: 'date-matter',
},
truncated: false,
});
expect(
@ -91,6 +93,7 @@ describe('loadBlog', () => {
permalink: '/blog/2019/01/01/date-matter',
title: 'date-matter',
},
truncated: false,
});
});
});