mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
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:
parent
894dbcff49
commit
5121ac013c
6 changed files with 12 additions and 7 deletions
|
@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue