Skip to content

Commit

Permalink
item_service_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ixre committed Mar 10, 2023
1 parent e3a0d7d commit 188e420
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/service/item_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@ func TestGetItem(t *testing.T) {
})
t.Log(typeconv.MustJson(goods))
}
func TestGetItemSku(t *testing.T) {
goods, _ := impl.ItemService.GetSku(context.TODO(), &proto.SkuId{
ItemId: 3272,
SkuId: 0,
})
t.Log(typeconv.MustJson(goods))

goods2, _ := impl.ItemService.GetItemBySku(context.TODO(), &proto.ItemBySkuRequest{
ProductId: 3272,
SkuId: 0,
})
t.Log(typeconv.MustJson(goods2))
}

0 comments on commit 188e420

Please sign in to comment.