Skip to content

Commit

Permalink
update main test to use done() instead of both done() and async/await
Browse files Browse the repository at this point in the history
Signed-off-by: David Cui <[email protected]>
  • Loading branch information
davidcui1225 committed Mar 23, 2022
1 parent c3233cb commit 100cba9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function setBreadcrumbs(array: []) {

describe('<Main /> panel', () => {
configure({ adapter: new Adapter() });
test('render component', async (done) => {
test('render component', (done) => {
window = Object.create(window);
Object.defineProperty(window, 'location', {
configurable: true,
Expand All @@ -27,7 +27,7 @@ describe('<Main /> panel', () => {
},
});

const { container } = await render(
const { container } = render(
<Main httpClient={httpClientMock} setBreadcrumbs={setBreadcrumbs} />
);

Expand Down

0 comments on commit 100cba9

Please sign in to comment.