From 2ca990d92fff8c45dcaeb586ce473f74af83383d Mon Sep 17 00:00:00 2001 From: Aditya Vyas Date: Mon, 17 Jun 2024 16:49:45 -0400 Subject: [PATCH] Update test/unit/server_async_transaction.test.js Co-authored-by: George --- test/unit/server_async_transaction.test.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/unit/server_async_transaction.test.js b/test/unit/server_async_transaction.test.js index ce80b65bb..a003cd307 100644 --- a/test/unit/server_async_transaction.test.js +++ b/test/unit/server_async_transaction.test.js @@ -46,12 +46,8 @@ describe("server.js async transaction submission tests", function () { this.server .submitAsyncTransaction(this.transaction, { skipMemoRequiredCheck: true }) - .then(function () { - done(); - }) - .catch(function (err) { - done(err); - }); + .then(() => done()) + .catch((err) => done(err)); }); it("sends an async transaction and gets a PENDING response", function (done) { const response = {