all the refactor
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"time"
|
||||
|
||||
"git.k6n.net/mats/go-cart-actor/pkg/cart"
|
||||
"git.k6n.net/mats/platform/money"
|
||||
)
|
||||
|
||||
func timeZero() time.Time { return time.Date(2024, 6, 10, 12, 0, 0, 0, time.UTC) }
|
||||
@@ -53,8 +54,8 @@ func TestVolymrabattTiers(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
total int64
|
||||
wantDiscount int64
|
||||
wantNet int64
|
||||
wantDiscount money.Cents
|
||||
wantNet money.Cents
|
||||
}{
|
||||
{"below threshold (19 999 kr)", 1999900, 0, 1999900},
|
||||
{"low tier 5% (20 000 kr)", 2000000, 100000, 1900000},
|
||||
|
||||
Reference in New Issue
Block a user