fix: options relations on GET variant (#532)

This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2021-10-13 19:46:44 +02:00
1 parent 9b0ca6e38c
commit fc50aacde2
5 files changed
+78 -40

No files matched your search

@@ -16,7 +16,7 @@ describe("Get variant by id", () => {
it("calls get variant from variantSerice", () => {
expect(ProductVariantServiceMock.retrieve).toHaveBeenCalledTimes(1)
expect(ProductVariantServiceMock.retrieve).toHaveBeenCalledWith("1", {
relations: ["prices"],
relations: ["prices", "options"],
})
})
@@ -12,4 +12,4 @@ export default app => {
return app
}
export const defaultRelations = ["prices"]
export const defaultRelations = ["prices", "options"]