Can anyone help me to write a test case for conditional rendering components using jest and enzyme?
{this.state.addingNewContent ?
<AddContent
contentId={this.state.contentId}
added={this.addContentHandler}
meta={option}
closeAddContent={this.closeAddContent}
assignedData={this.state[option.name]} />
: <Lock
lock={this.state.isLocked}
lockedBy={this.state.lockedBy}
clicked={() => this.toggleModal(true, 'lock')}>}