Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
What will the following Jest test case verify about the 'calculateDiscount' function for an online store application?
describe('Discount calculations', () => {
test('should apply a 10% discount for VIP customers', () => {
const price = 100;
const customer = { type: 'VIP' };
expect(calculateDiscount(price, customer)).toBeLessThanOrEqual(90);
});
test('should not give a discount for non-VIP customers', () => {
const price = 100;
const customer = { type: 'regular' };
expect(calculateDiscount(price, customer)).toBe(100);
});
});