From 325be82e48b6197339826bfd2e1024feca43f460 Mon Sep 17 00:00:00 2001 From: Taylor McKinnon Date: Mon, 23 Oct 2023 10:05:06 -0700 Subject: [PATCH] add cb to test --- tests/unit/utils/safeList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }); }); });