Skip to content
RED SAG Skills
medium10 pts · first answer countstest-automationtest-design

An if statement inside a test

A test contains: if (cart.items.length > 0) { expect(total).toBe(1180) } else { expect(total).toBe(0) }. What is the main problem?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions