From 1d73672359ea6db87238d2e9461000edeaf99735 Mon Sep 17 00:00:00 2001 From: Jens Verbeken Date: Thu, 18 Mar 2021 09:35:11 +0100 Subject: [PATCH] update tests to reflect api change --- src/endpoints/attribute.spec.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/endpoints/attribute.spec.ts b/src/endpoints/attribute.spec.ts index 7e758c8..98a167a 100644 --- a/src/endpoints/attribute.spec.ts +++ b/src/endpoints/attribute.spec.ts @@ -93,7 +93,13 @@ describe('Attribute', () => { }); expect(axios.get).toBeCalledWith( '/api/rest/v1/attributes/back_material/options', - {}, + { + params: { + limit: 100, + page: 1, + with_count: true, + }, + }, ); expect(attributes).toHaveLength(1); }); @@ -112,7 +118,7 @@ describe('Attribute', () => { expect(axios.get).toBeCalledWith( '/api/rest/v1/attributes/back_material/options', { - params: { limit: 100 }, + params: { limit: 100, page: 1, with_count: true }, }, ); expect(attributes).toHaveLength(1);