Skip to content

Commit 2c58173

Browse files
committed
pr comments
1 parent 5ffe5f6 commit 2c58173

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

integration-tests/http/__tests__/product-option/product-option.spec.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ medusaIntegrationTestRunner({
4141
})
4242

4343
describe("GET /admin/product-options", () => {
44-
it("returns a list of product options", async () => {
44+
it("should return a list of product options", async () => {
4545
const res = await api.get("/admin/product-options", adminHeaders)
4646

4747
expect(res.status).toEqual(200)
@@ -68,7 +68,7 @@ medusaIntegrationTestRunner({
6868
)
6969
})
7070

71-
it("returns a list of product options matching free text search param", async () => {
71+
it("should return a list of product options matching free text search param", async () => {
7272
const res = await api.get("/admin/product-options?q=1", adminHeaders)
7373

7474
expect(res.status).toEqual(200)
@@ -80,7 +80,7 @@ medusaIntegrationTestRunner({
8080
)
8181
})
8282

83-
it("returns a list of exclusive product options", async () => {
83+
it("should return a list of exclusive product options", async () => {
8484
const res = await api.get(
8585
"/admin/product-options?is_exclusive=false",
8686
adminHeaders
@@ -97,7 +97,7 @@ medusaIntegrationTestRunner({
9797
})
9898

9999
describe("POST /admin/product-options", () => {
100-
it("creates a product option with value ranks", async () => {
100+
it("should create a product option with value ranks", async () => {
101101
const option = (
102102
await api.post(
103103
`/admin/product-options`,
@@ -131,7 +131,7 @@ medusaIntegrationTestRunner({
131131
)
132132
})
133133

134-
it("throws ir a rank is specified for invalid value", async () => {
134+
it("should throw if a rank is specified for invalid value", async () => {
135135
const error = await api
136136
.post(
137137
`/admin/product-options`,
@@ -155,7 +155,7 @@ medusaIntegrationTestRunner({
155155
})
156156

157157
describe("GET /admin/product-options/[id]", () => {
158-
it("returns a product option", async () => {
158+
it("should return a product option", async () => {
159159
const res = await api.get(
160160
`/admin/product-options/${option1.id}`,
161161
adminHeaders
@@ -177,7 +177,7 @@ medusaIntegrationTestRunner({
177177
})
178178

179179
describe("POST /admin/product-options/[id]", () => {
180-
it("updates a product option", async () => {
180+
it("should update a product option", async () => {
181181
const option = (
182182
await api.post(
183183
`/admin/product-options/${option2.id}`,
@@ -208,7 +208,7 @@ medusaIntegrationTestRunner({
208208
expect(res.data.product_options.length).toEqual(0)
209209
})
210210

211-
it("updates a product value ranks", async () => {
211+
it("should update a product value ranks", async () => {
212212
const option = (
213213
await api.post(
214214
`/admin/product-options/${option2.id}`,
@@ -242,7 +242,7 @@ medusaIntegrationTestRunner({
242242
})
243243

244244
describe("DELETE /admin/product-options/[id]", () => {
245-
it("deletes a product option", async () => {
245+
it("should delete a product option", async () => {
246246
await api.delete(`/admin/product-options/${option2.id}`, adminHeaders)
247247

248248
const res = await api.get("/admin/product-options", adminHeaders)

0 commit comments

Comments
 (0)