-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use Link component to resolve 404 error.
- Loading branch information
1 parent
fcd1893
commit e0cf893
Showing
5 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import React from "react"; | ||
import { render } from "@testing-library/react"; | ||
import AppRouter from "./AppRouter"; | ||
import { BrowserRouter } from "react-router-dom"; | ||
|
||
describe("<AppRouter /> spec", () => { | ||
it("renders the AppRouter", () => { | ||
const view = render(<AppRouter />); | ||
const view = render( | ||
<BrowserRouter> | ||
<AppRouter /> | ||
</BrowserRouter> | ||
); | ||
expect(view).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
import { render } from "@testing-library/react"; | ||
import NavigationDrawer from "./NavigationDrawer"; | ||
import { BrowserRouter } from "react-router-dom"; | ||
|
||
describe("<NavigationDrawer /> spec", () => { | ||
it("renders the NavigationDrawer", () => { | ||
const view = render(<NavigationDrawer />); | ||
const view = render( | ||
<BrowserRouter> | ||
<NavigationDrawer /> | ||
</BrowserRouter> | ||
); | ||
expect(view).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters