Skip to content

Commit

Permalink
Adjust test
Browse files Browse the repository at this point in the history
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
  • Loading branch information
DorraJaouad committed Oct 9, 2023
1 parent c6a09b4 commit edc7878
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/store/messagesStore.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1935,23 +1935,28 @@ describe('messagesStore', () => {
messageToBeForwarded = {
id: 1,
token: TOKEN,
message: 'Hello {mention-user1}, {mention-user2}',
message: 'Hello {mention-user1}, {mention-user2}, and {mention-call1}',
messageParameters: {
'mention-user1': {
id: 'taylor',
name: 'Taylor',
type: 'user',
},
'mention-user2': {
id: 'adam',
id: 'adam driver',
name: 'Adam',
type: 'user',
},
'mention-call1': {
id: TOKEN,
name: 'Team X',
type: 'call',
},
},
}
targetToken = 'token-2'
messageExpected = cloneDeep(messageToBeForwarded)
messageExpected.message = 'Hello @Taylor, @Adam'
messageExpected.message = 'Hello @"taylor", @"adam driver", and **Team X**'
messageExpected.token = targetToken

// Act
Expand Down

0 comments on commit edc7878

Please sign in to comment.