fix tests for the new sessionStorage key

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-10-08 10:04:01 +01:00
parent 017d2d40fe
commit b2d04deb83

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(),