From bf37098506f8acc1979fe748a6fe4774b8cc1e69 Mon Sep 17 00:00:00 2001 From: cameron Date: Wed, 9 Oct 2024 18:04:54 +0000 Subject: [PATCH] NOBUG - fixing test --- __tests__/settings.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/__tests__/settings.js b/__tests__/settings.js index 06828fc..6112970 100644 --- a/__tests__/settings.js +++ b/__tests__/settings.js @@ -40,7 +40,9 @@ async function createDB(items, tableName = TABLE_NAME) { for (const item of items) { await dynamodb.putItem({ TableName: tableName, - Item: marshall(item) + Item: marshall(item, { + removeUndefinedValues: true + }) }); } @@ -76,7 +78,9 @@ async function putDB(data, tableName = TABLE_NAME) { for (const item of data) { await dynamodb.putItem({ TableName: tableName, - Item: marshall(item) + Item: marshall(item, { + removeUndefinedValues: true + }) }); } }