generated from PenaSide/GolangTemplate
debug: rewrite discount products to privileges
This commit is contained in:
parent
ab557c7b30
commit
75fe1144e7
@ -10,21 +10,6 @@ import (
|
||||
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/utils/transfer"
|
||||
)
|
||||
|
||||
func TestTariffsToProductInformations(t *testing.T) {
|
||||
t.Run("Успешный перевод массива моделей тарифов в массив информации о продуктах", func(t *testing.T) {
|
||||
assert.Equal(t,
|
||||
[]*discount.ProductInformation{
|
||||
{ID: "1", Price: 20},
|
||||
{ID: "2", Price: 10},
|
||||
},
|
||||
transfer.TariffsToProductInformations([]models.Tariff{
|
||||
{ID: "1", Price: 20},
|
||||
{ID: "2", Price: 10},
|
||||
}),
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
func TestTariffMessageProtoToTariffModel(t *testing.T) {
|
||||
t.Run("Успешный перевод прото сообщения тарифа в модель", func(t *testing.T) {
|
||||
assert.Equal(t,
|
||||
|
Loading…
Reference in New Issue
Block a user