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 = {
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(),
},