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,7 +4,7 @@ import { BrowserRouter } from 'react-router-dom';
|
||||
// Components
|
||||
import Search from '.';
|
||||
|
||||
describe('Search testing snapshot', () => {
|
||||
describe('Search', () => {
|
||||
const placeHolder = 'Search placeholder...';
|
||||
const wrapper = renderer.create(
|
||||
<BrowserRouter>
|
||||
@@ -12,7 +12,7 @@ describe('Search testing snapshot', () => {
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
test('render', () => {
|
||||
test('Should render correctly', () => {
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Search testing snapshot render 1`] = `
|
||||
exports[`Search Should render correctly 1`] = `
|
||||
<input
|
||||
className="sc-bdnyFh eAgOPb"
|
||||
onChange={[Function]}
|
||||
|
||||
Reference in New Issue
Block a user