From f780ca7a923d7f6ca1b61bbfec461793907ee2ae Mon Sep 17 00:00:00 2001 From: Balu Babu Date: Thu, 26 Oct 2023 12:20:04 +0530 Subject: [PATCH] test: modified all relevant tests in shortcode module --- .../src/shortcode/shortcode.service.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts b/packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts index b1dac3825..36dcb36f6 100644 --- a/packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts +++ b/packages/hoppscotch-backend/src/shortcode/shortcode.service.spec.ts @@ -41,6 +41,7 @@ const createdOn = new Date(); const shortCodeWithOutUser = { id: '123', request: '{}', + properties: null, createdOn: createdOn, creatorUid: null, }; @@ -48,6 +49,7 @@ const shortCodeWithOutUser = { const shortCodeWithUser = { id: '123', request: '{}', + properties: null, createdOn: createdOn, creatorUid: 'user_uid_1', }; @@ -58,6 +60,9 @@ const shortcodes = [ request: { hello: 'there', }, + properties: { + foo: 'bar', + }, creatorUid: 'testuser', createdOn: new Date(), }, @@ -66,6 +71,9 @@ const shortcodes = [ request: { hello: 'there', }, + properties: { + foo: 'bar', + }, creatorUid: 'testuser', createdOn: new Date(), },