fix: options relations on GET variant (#532)

This commit is contained in:
Kasper Fabricius Kristensen
2021-10-13 19:46:44 +02:00
committed by GitHub
parent 9b0ca6e38c
commit fc50aacde2
5 changed files with 78 additions and 40 deletions
@@ -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"]