增加发布协议确认配置
This commit is contained in:
@@ -58,6 +58,15 @@ func TestValidateRequestRequiresDepositAboveConsumables(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateRequiresPublishAgreements(t *testing.T) {
|
||||
service := NewService(&Repository{}, nil)
|
||||
|
||||
_, err := service.Create(1, CreateRequest{})
|
||||
if err != ErrAgreementRequired {
|
||||
t.Fatalf("expected ErrAgreementRequired, got %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestApplySellerListingPriceUsesSellerTotalPrice(t *testing.T) {
|
||||
item := &ListingDTO{
|
||||
Price: 238,
|
||||
|
||||
Reference in New Issue
Block a user