chore: disable cycle dependency error for eslint (#227)
* chore: disable cycle dependency error for eslint * chore: remove done from async function * chore: downgrade @testing-library/react to 12 for react@16 support * fix: update integration test selection and waiting --------- Co-authored-by: Ben Warzeski <bwarzesk@gmail.com>
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user