From 2efabf205bd671b470b1bdbbf975a788068130b6 Mon Sep 17 00:00:00 2001 From: Ed Olivares <34591886+eudoroolivares2016@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:24:02 -0400 Subject: [PATCH] EDSC-4234: Fix test --- serverless/src/submitSwodlrOrder/__tests__/handler.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serverless/src/submitSwodlrOrder/__tests__/handler.test.js b/serverless/src/submitSwodlrOrder/__tests__/handler.test.js index d795819f21..2ab73c8ab3 100644 --- a/serverless/src/submitSwodlrOrder/__tests__/handler.test.js +++ b/serverless/src/submitSwodlrOrder/__tests__/handler.test.js @@ -449,13 +449,13 @@ describe('submitSwodlrOrder', () => { }) const context = {} - await expect(submitSwodlrOrder(mockSwodlrOrder, context)).rejects.toEqual(new Error('Error: Too many granules')) + await expect(submitSwodlrOrder(mockSwodlrOrder, context)).rejects.toEqual(new Error('Error: Too many granules cannot submit to Swodlr api')) const { queries } = dbTracker.queries expect(queries[0].method).toEqual('first') expect(queries[1].method).toEqual('update') - expect(queries[1].bindings).toEqual(['create_failed', 'Error: Too many granules', 12]) + expect(queries[1].bindings).toEqual(['create_failed', 'Error: Too many granules cannot submit to Swodlr api', 12]) }) test('saves an error message if the create fails in swodlr order', async () => {