Ternary operators test case with jest
I want write a jest test case for following case as it show branch coverage 50% and point out for this code.
render() {
const {
isExit
} = data;
const text = isExit ? 'Yes' : 'No';
or
test case
it('Should display the data if API status is complete', () => {
const wrapper = shallowWithTheme( );
// what to write here?
});