Skip to content

Commit

Permalink
chore: remove done from async function
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx committed Jul 14, 2023
1 parent bfd453f commit 69ba495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/FilePreview/BaseRenderers/textHooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,12 @@ describe('Text file preview hooks', () => {
});
});
describe('onError', () => {
it('calls get on the passed url when it changes', async (done) => {
it('calls get on the passed url when it changes', async () => {
axios.get.mockReturnValueOnce(Promise.reject(
{ response: { status: testValue } },
));
await hooks.fetchFile({ ...props, setContent: state.setState.content });
expect(props.onError).toHaveBeenCalledWith(testValue);
done();
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions src/test/app.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ describe('ESG app integration tests', () => {
await resolveFns.lock.success();
}
/*
test('submit pending', async (done) => {
test('submit pending', async () => {
done();
});
test('submit failed', async (done) => {
test('submit failed', async () => {
done();
});
*/
Expand Down

0 comments on commit 69ba495

Please sign in to comment.