debug: rewrite discount products to privileges

This commit is contained in:
skeris 2023-09-20 01:11:11 +03:00
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,