Ternary operators test case with jest
00:58 05 Dec 2018

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?   
  });
reactjs jestjs enzyme