Skip to content

Commit

Permalink
Remove document detail decode test
Browse files Browse the repository at this point in the history
- now handled/tested by useDecodedParams helper
  • Loading branch information
cee-chen committed Feb 1, 2021
1 parent c0ad74e commit 12e4db9
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,4 @@ describe('DocumentDetail', () => {

expect(actions.deleteDocument).toHaveBeenCalledWith('1');
});

it('correctly decodes document IDs', () => {
(useParams as jest.Mock).mockReturnValueOnce({ documentId: 'hello%20world%20%26%3F!' });
const wrapper = shallow(<DocumentDetail engineBreadcrumb={['test']} />);
expect(wrapper.find('h1').text()).toEqual('Document: hello world &?!');
});
});

0 comments on commit 12e4db9

Please sign in to comment.