Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- item?.['output']?.length > 0 && (
- item.output.map(statement => {
- if(statement?.toLowerCase().includes('passed')) {
- return <p className="text-green-600" style={{ overflowWrap: 'anywhere' }}>{ statement }</p>
- } else if(statement?.toLowerCase().includes('failed')) {
- return <p className="text-red-600" style={{ overflowWrap: 'anywhere' }}>{ statement }</p>
- } else {
- return <p style={{ overflowWrap: 'anywhere' }}>{ statement }</p>
- }
- })
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement