Created
April 18, 2021 06:53
-
-
Save dsibinski/bc7fadda8108de46dab2edaf30e87ed2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('getDiscountPercentageValue returns 10 percent discount for total quantity of 50', () => { | |
let discountApplier = new DiscountApplier(); | |
let products = [new Product("Product 1", 1, 25), new Product("Product 2", 1, 25)]; | |
let discountValue = discountApplier.getDiscountPercentageValue(products); | |
expect(discountValue).toBe(10); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment