feat: Add supported currencies to store model (#6562)
I ultimately went with having a flat list of settings for the store. It wouldn't be very difficult to change it if we wish to do so, but for now this keeps the codebase simpler
This commit is contained in:
1 parent
347aba719c
commit
71ed21de4a
10 files changed
+40
-3
No files matched your search
@@ -46,11 +46,15 @@ describe("Store - Admin", () => {
|
||||
|
||||
it("should correctly implement the entire lifecycle of a store", async () => {
|
||||
const api = useApi() as any
|
||||
const createdStore = await service.create({ name: "Test store" })
|
||||
const createdStore = await service.create({
|
||||
name: "Test store",
|
||||
supported_currency_codes: ["usd"],
|
||||
})
|
||||
|
||||
expect(createdStore).toEqual(
|
||||
expect.objectContaining({
|
||||
id: createdStore.id,
|
||||
supported_currency_codes: ["usd"],
|
||||
name: "Test store",
|
||||
})
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user