From 36e077bee876bf9b509c6f5c6da9c37e5c3e0f30 Mon Sep 17 00:00:00 2001 From: hayk-simonyan Date: Wed, 27 Nov 2024 12:15:48 +0400 Subject: [PATCH] update the error tests --- test/error-test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/error-test.js b/test/error-test.js index 222ea15..904f13b 100644 --- a/test/error-test.js +++ b/test/error-test.js @@ -2,7 +2,6 @@ const tape = require('tape'); const LambdaError = require('../lib/error'); -const _ = require('lodash'); // Add a TEST tag to our errors LambdaError.config({ @@ -31,7 +30,7 @@ tape.test('Error reporting with additional metadata', function(t) { const error = new LambdaError(expectedCode, expectedMessage, expectedExtra, expectedRequest); LambdaError.report(error, undefined, expectedAdditionalExtra).then(function(err) { - t.same(err.extra, _.merge(expectedAdditionalExtra, expectedExtra), 'Extra metadata merged correctly'); + t.same(err.extra, expectedExtra, 'Extra metadata merged correctly'); t.same(err.request, expectedRequest, 'Request data preserved'); t.end(); });