mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-23 04:19:48 +00:00
Update code and message test case
This commit is contained in:
@@ -4,14 +4,14 @@ import { BrowserRouter } from 'react-router-dom';
|
||||
// Components
|
||||
import Sidebar from '.';
|
||||
|
||||
describe('Sidebar testing snapshot', () => {
|
||||
describe('Sidebar', () => {
|
||||
const wrapper = renderer.create(
|
||||
<BrowserRouter>
|
||||
<Sidebar heading="Hotel Management" />
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
test('render', () => {
|
||||
test('Should render correctly', () => {
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Sidebar testing snapshot render 1`] = `
|
||||
exports[`Sidebar Should render correctly 1`] = `
|
||||
<aside
|
||||
className="sc-dlniIP dfcuiS"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user