kopia lustrzana https://github.com/wagtail/wagtail
Remove irrelevant tests from the PageCount since it does not have a title dependency when displaying
rodzic
341da5369d
commit
a77ad34df3
|
@ -26,10 +26,4 @@ describe('PageCount', () => {
|
|||
props.page.children.count = 5;
|
||||
expect(shallow(<PageCount {...props} />)).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('#title', () => {
|
||||
const props = Object.assign({}, mockProps);
|
||||
props.page.title = 'This is an example';
|
||||
expect(shallow(<PageCount {...props} />)).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,23 +1,5 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`PageCount #title 1`] = `
|
||||
<a
|
||||
className="c-explorer__see-more"
|
||||
href="/admin/pages/1/"
|
||||
tabIndex={0}
|
||||
>
|
||||
See all
|
||||
<span>
|
||||
5 pages
|
||||
</span>
|
||||
<Icon
|
||||
className={null}
|
||||
name="arrow-right"
|
||||
title={null}
|
||||
/>
|
||||
</a>
|
||||
`;
|
||||
|
||||
exports[`PageCount plural 1`] = `
|
||||
<a
|
||||
className="c-explorer__see-more"
|
||||
|
|
Ładowanie…
Reference in New Issue