style(medusa): Cleanup some tests case naming

This commit is contained in:
adrien2p
2022-05-10 16:28:10 +02:00
parent 1c3c62e966
commit 1c5647f69e

View File

@@ -276,7 +276,7 @@ describe("CartService", () => {
expect(cartRepository.save).toHaveBeenCalledTimes(1)
})
it("creates a cart with a prefilled shipping address but a country not part of the region", async () => {
it("should throw shipping country not in region", async () => {
const res = cartService.create({
region_id: IdMap.getId("testRegion"),
shipping_address: {
@@ -293,7 +293,7 @@ describe("CartService", () => {
await expect(res).rejects.toThrow("Shipping country not in region")
})
it("creates a cart with a prefilled shipping address", async () => {
it("a cart with a prefilled shipping address", async () => {
await cartService.create({
region_id: IdMap.getId("testRegion"),
shipping_address: {