style(medusa): Cleanup some tests case naming

This commit is contained in:
adrien2p committed 2022-05-10 16:28:10 +02:00
1 parent 1c3c62e966
commit 1c5647f69e
1 file changed
+2 -2
@@ -276,7 +276,7 @@ describe("CartService", () => {
expect(cartRepository.save).toHaveBeenCalledTimes(1) 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({ const res = cartService.create({
region_id: IdMap.getId("testRegion"), region_id: IdMap.getId("testRegion"),
shipping_address: { shipping_address: {
@@ -293,7 +293,7 @@ describe("CartService", () => {
await expect(res).rejects.toThrow("Shipping country not in region") 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({ await cartService.create({
region_id: IdMap.getId("testRegion"), region_id: IdMap.getId("testRegion"),
shipping_address: { shipping_address: {