test: modified all relevant tests in shortcode module

This commit is contained in:
Balu Babu
2023-10-26 12:20:04 +05:30
parent 3747da9939
commit f780ca7a92

View File

@@ -41,6 +41,7 @@ const createdOn = new Date();
const shortCodeWithOutUser = { const shortCodeWithOutUser = {
id: '123', id: '123',
request: '{}', request: '{}',
properties: null,
createdOn: createdOn, createdOn: createdOn,
creatorUid: null, creatorUid: null,
}; };
@@ -48,6 +49,7 @@ const shortCodeWithOutUser = {
const shortCodeWithUser = { const shortCodeWithUser = {
id: '123', id: '123',
request: '{}', request: '{}',
properties: null,
createdOn: createdOn, createdOn: createdOn,
creatorUid: 'user_uid_1', creatorUid: 'user_uid_1',
}; };
@@ -58,6 +60,9 @@ const shortcodes = [
request: { request: {
hello: 'there', hello: 'there',
}, },
properties: {
foo: 'bar',
},
creatorUid: 'testuser', creatorUid: 'testuser',
createdOn: new Date(), createdOn: new Date(),
}, },
@@ -66,6 +71,9 @@ const shortcodes = [
request: { request: {
hello: 'there', hello: 'there',
}, },
properties: {
foo: 'bar',
},
creatorUid: 'testuser', creatorUid: 'testuser',
createdOn: new Date(), createdOn: new Date(),
}, },