fix tests for the new sessionStorage key

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-10-08 10:04:01 +01:00
parent 017d2d40fe
commit b2d04deb83
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ describe('<SendMessageComposer/>', () => {
});
expect(wrapper.text()).toBe("");
const str = sessionStorage.getItem(`mx_cider_composer_history_${mockRoom.roomId}[0]`);
const str = sessionStorage.getItem(`mx_cider_history_${mockRoom.roomId}[0]`);
expect(JSON.parse(str)).toStrictEqual({
parts: [{"type": "plain", "text": "This is a message"}],
replyEventId: mockEvent.getId(),