test: modified all relevant tests in shortcode module
This commit is contained in:
@@ -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(),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user