feat(oas): declare x-expanded-relations - Store (#3482)

* feat(oas): declare x-expanded-relations - Store

* fixup! feat(oas): declare x-expanded-relations - Store

* fixup! feat(oas): declare x-expanded-relations - Store

* fixup! feat(oas): declare x-expanded-relations - Store

* fixup! feat(oas): declare x-expanded-relations - Store

* chore(changeset): patch

* fix(tests): update store auth integration test

* fix: pr feedback

* fix(test): match response code
This commit is contained in:
Patrick
2023-03-16 04:08:20 -04:00
committed by GitHub
parent da0787bd11
commit 522e306e2e
31 changed files with 448 additions and 52 deletions

View File

@@ -1,18 +0,0 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`/store/auth creates store session correctly 1`] = `
Object {
"billing_address_id": null,
"created_at": Any<String>,
"deleted_at": null,
"email": "test@testesen.dk",
"first_name": "test",
"has_account": true,
"id": Any<String>,
"last_name": "testesen",
"metadata": null,
"orders": Array [],
"phone": null,
"updated_at": Any<String>,
}
`;

View File

@@ -49,15 +49,18 @@ describe("/store/auth", () => {
expect(response.status).toEqual(200)
expect(response.data.customer.password_hash).toEqual(undefined)
expect(response.data.customer).toMatchSnapshot({
id: expect.any(String),
created_at: expect.any(String),
updated_at: expect.any(String),
first_name: "test",
last_name: "testesen",
phone: null,
email: "test@testesen.dk",
})
expect(response.data.customer).toEqual(
expect.objectContaining({
id: expect.any(String),
created_at: expect.any(String),
updated_at: expect.any(String),
first_name: "test",
last_name: "testesen",
phone: null,
email: "test@testesen.dk",
shipping_addresses: expect.arrayContaining([]),
})
)
})
describe("Store session management", () => {

View File

@@ -440,7 +440,7 @@ describe("/store/payment-collections", () => {
})
)
expect(response.status).toEqual(207)
expect(response.status).toEqual(200)
})
})
})