-
-
Save AbbasHoseini/87dd1579bfbec2b1b6ae36d150a2ca75 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
test('adding item increases total cost', () { | |
final cart = CartModel(); | |
final startingPrice = cart.totalPrice; | |
cart.addListener(() { | |
expect(cart.totalPrice, greaterThan(startingPrice)); | |
}); | |
cart.add(Item('Dash')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment