The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/apps/server/tests/mocks/data/messages.data.js

115 lines
2.3 KiB

export const appMessageMock = {
id: 'appMessageMock',
text: 'rocket.cat',
createdAt: new Date('2019-03-30T01:22:08.389Z'),
updatedAt: new Date('2019-03-30T01:22:08.412Z'),
groupable: false,
room: {
id: 'GENERAL',
displayName: 'general',
slugifiedName: 'general',
type: 'c',
creator: {
username: 'rocket.cat',
emails: [
{
address: 'rocketcat@rocket.chat',
verified: true,
},
],
type: 'bot',
isEnabled: true,
name: 'Rocket.Cat',
roles: [
'bot',
],
status: 'online',
statusConnection: 'online',
utcOffset: 0,
createdAt: new Date('2019-04-13T01:33:14.191Z'),
updatedAt: new Date('2019-04-13T01:33:14.191Z'),
},
},
sender: {
id: 'rocket.cat',
username: 'rocket.cat',
emails: [
{
address: 'rocketcat@rocket.chat',
verified: true,
},
],
type: 'bot',
isEnabled: true,
name: 'Rocket.Cat',
roles: [
'bot',
],
status: 'online',
statusConnection: 'online',
utcOffset: 0,
createdAt: new Date('2019-04-13T01:33:14.191Z'),
updatedAt: new Date('2019-04-13T01:33:14.191Z'),
},
_unmappedProperties_: {
t: 'uj',
},
};
export const appMessageInvalidRoomMock = {
id: 'appMessageInvalidRoomMock',
text: 'rocket.cat',
createdAt: new Date('2019-03-30T01:22:08.389Z'),
updatedAt: new Date('2019-03-30T01:22:08.412Z'),
groupable: false,
room: {
id: 'INVALID IDENTIFICATION',
displayName: 'Mocked Room',
slugifiedName: 'mocked-room',
type: 'c',
creator: {
username: 'rocket.cat',
emails: [
{
address: 'rocketcat@rocket.chat',
verified: true,
},
],
type: 'bot',
isEnabled: true,
name: 'Rocket.Cat',
roles: [
'bot',
],
status: 'online',
statusConnection: 'online',
utcOffset: 0,
createdAt: new Date('2019-04-13T01:33:14.191Z'),
updatedAt: new Date('2019-04-13T01:33:14.191Z'),
},
},
sender: {
id: 'rocket.cat',
username: 'rocket.cat',
emails: [
{
address: 'rocketcat@rocket.chat',
verified: true,
},
],
type: 'bot',
isEnabled: true,
name: 'Rocket.Cat',
roles: [
'bot',
],
status: 'online',
statusConnection: 'online',
utcOffset: 0,
createdAt: new Date('2019-04-13T01:33:14.191Z'),
updatedAt: new Date('2019-04-13T01:33:14.191Z'),
},
_unmappedProperties_: {
t: 'uj',
},
};