feat(medusa): Allow to filter collections by discount condition id (#2411)

This commit is contained in:
Adrien de Peretti
2022-10-11 16:14:10 +02:00
committed by GitHub
parent 308b99cc5d
commit c717442451
11 changed files with 210 additions and 51 deletions

View File

@@ -6,10 +6,10 @@ Object {
Object {
"created_at": Any<String>,
"deleted_at": null,
"handle": "test-collection",
"id": "test-collection",
"handle": "test-collection2",
"id": "test-collection2",
"metadata": null,
"title": "Test collection",
"title": "Test collection 2",
"updated_at": Any<String>,
},
Object {
@@ -24,10 +24,10 @@ Object {
Object {
"created_at": Any<String>,
"deleted_at": null,
"handle": "test-collection2",
"id": "test-collection2",
"handle": "test-collection",
"id": "test-collection",
"metadata": null,
"title": "Test collection 2",
"title": "Test collection",
"updated_at": Any<String>,
},
],

View File

@@ -66,7 +66,7 @@ describe("/store/collections", () => {
expect(response.data).toMatchSnapshot({
collections: [
{
id: "test-collection",
id: "test-collection2",
created_at: expect.any(String),
updated_at: expect.any(String),
},
@@ -76,7 +76,7 @@ describe("/store/collections", () => {
updated_at: expect.any(String),
},
{
id: "test-collection2",
id: "test-collection",
created_at: expect.any(String),
updated_at: expect.any(String),
},