-
Notifications
You must be signed in to change notification settings - Fork 955
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BE-652 Increase Code Coverage for test UI Cases
* Worked on View Components Change-Id: I32c40b0226906e0465424bdbfadaadbd177bb827 Signed-off-by: Uma Parameshwari <umaparameswari11@gmail.com>
- Loading branch information
Showing
9 changed files
with
400 additions
and
354 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
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import Enzyme, { shallow } from 'enzyme'; | ||
import { unwrap } from '@material-ui/core/test-utils'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import Table from './Table'; | ||
|
||
Enzyme.configure({ adapter: new Adapter() }); | ||
|
||
const ComponentNaked = unwrap(Table); | ||
|
||
describe('<Table />', () => { | ||
it('with shallow', () => { | ||
const wrapper = shallow(<ComponentNaked classes={{}} />); | ||
expect(wrapper.exists()).toBe(true); | ||
}); | ||
}); |
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
Oops, something went wrong.