Fixed tests

This commit is contained in:
Alejandro Celaya
2020-03-08 12:57:01 +01:00
parent 9804a2d18d
commit b011b4e1d8
2 changed files with 21 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ describe('<NotFound />', () => {
});
it('shows a link with provided props', () => {
const { wrapper } = createWrapper({ to: '/foo/bar', btnText: 'Hello' });
const { wrapper } = createWrapper({ to: '/foo/bar', children: 'Hello' });
const link = wrapper.find(Link);
expect(link.prop('to')).toEqual('/foo/bar');