Skip to content

Commit

Permalink
update tests to reflect api change
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdev committed Mar 18, 2021
1 parent ba90f5c commit 1d73672
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/endpoints/attribute.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand All @@ -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);
Expand Down

0 comments on commit 1d73672

Please sign in to comment.