Remove irrelevant tests from the PageCount since it does not have a title dependency when displaying

pull/3744/merge
Janneke Janssen 2017-07-06 14:53:07 +02:00 zatwierdzone przez Matt Westcott
rodzic 341da5369d
commit a77ad34df3
2 zmienionych plików z 0 dodań i 24 usunięć

Wyświetl plik

@ -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();
});
});

Wyświetl plik

@ -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"