add not found page test case for scaffolder
Signed-off-by: Stephen Glass <stephen@stephen.glass>
This commit is contained in:
@@ -76,6 +76,14 @@ describe('Router', () => {
|
||||
expect(getByText('foobar')).toBeInTheDocument();
|
||||
expect(TemplateListPage).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should render not found error page', async () => {
|
||||
await expect(
|
||||
wrapInApisAndRender(<Router />, {
|
||||
routeEntries: ['/foonotfounderror'],
|
||||
}),
|
||||
).rejects.toThrow('Reached NotFound Page');
|
||||
});
|
||||
});
|
||||
|
||||
describe('/templates/:templateName', () => {
|
||||
|
||||
Reference in New Issue
Block a user