Skip to content

Commit

Permalink
feat(test-utils): attach sender to meta
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Apr 18, 2020
1 parent 7ed1e7d commit f70c9c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/test-utils/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ export const createMessageMeta = (type: ContextType, message: string, userId: nu
messageType: type === 'user' ? 'private' : type,
message,
userId,
sender: {
sex: 'unknown',
age: 0,
userId,
nickname: '' + userId,
},
})

export class Session {
Expand Down

0 comments on commit f70c9c9

Please sign in to comment.