checkout
This commit is contained in:
@@ -16,6 +16,13 @@ func GetMessage(t uint16, data interface{}) *Message {
|
||||
}
|
||||
}
|
||||
|
||||
func TestTaxAmount(t *testing.T) {
|
||||
taxAmount := GetTaxAmount(12500, 2500)
|
||||
if taxAmount != 2500 {
|
||||
t.Errorf("Expected 2500, got %d\n", taxAmount)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAddToCartShortCut(t *testing.T) {
|
||||
grain, err := spawn(ToCartId("kalle"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user