diff --git a/tests/unit/utils/safeList.js b/tests/unit/utils/safeList.js index 39fbf823..c366d91c 100644 --- a/tests/unit/utils/safeList.js +++ b/tests/unit/utils/safeList.js @@ -288,7 +288,7 @@ describe('test safeListObjectVersions', () => { }); }); - it('should pass through original error if the XML fails to parse', () => { + it('should pass through original error if the XML fails to parse', done => { const error = new Error('im an original error'); const resp = { httpResponse: { @@ -300,6 +300,7 @@ describe('test safeListObjectVersions', () => { recoverListing(resp, (err, data) => { expect(err).toStrictEqual(error); expect(data).toStrictEqual(undefined); + done(); }); }); });