Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
lauramargar committed Mar 20, 2024
1 parent 54f647c commit 46a2340
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const renderUseAliasApiTest = (registerXModules = true): renderUseAliasApiTestAP
};
describe('testing useAliasApi composable', () => {
it('returns default values when no module is registered', () => {
const { xAliasAPI, query, status } = renderUseAliasApiTest(false);
const { xAliasAPI } = renderUseAliasApiTest(false);

const defaultValues = {
query: {
Expand Down Expand Up @@ -132,13 +132,7 @@ describe('testing useAliasApi composable', () => {
totalResults: 0,
selectedSort: ''
};
expect(query).toMatchObject(defaultValues.query);
expect(status).toMatchObject(defaultValues.status);
expect({ ...xAliasAPI }).toMatchObject({
...defaultValues,
query: expect.any(Object),
status: expect.any(Object)
});
expect(xAliasAPI).toMatchObject(defaultValues);
});
it('updates the query values when the module is registered', () => {
const { store, query } = renderUseAliasApiTest();
Expand Down

0 comments on commit 46a2340

Please sign in to comment.