Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dougfabris committed Dec 21, 2022
1 parent 82bf7d5 commit 916ab9a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ describe('components/AdministrationList/AdministrationModelList', () => {

it('should render admin box and call sidenav', async () => {
const closeList = spy();
const setFlex = spy();
const openFlex = spy();
const AdministrationModelList = proxyquire.load(COMPONENT_PATH, {
...defaultConfig,
}).default;
Expand All @@ -145,8 +143,6 @@ describe('components/AdministrationList/AdministrationModelList', () => {
const button = screen.getByText('Admin Item');

userEvent.click(button);
await waitFor(() => expect(setFlex).to.have.been.called.with('admin'));
await waitFor(() => expect(openFlex).to.have.been.called());
await waitFor(() => expect(closeList).to.have.been.called());
});
});
Expand Down

0 comments on commit 916ab9a

Please sign in to comment.