diff --git a/spec/unit/crypto.spec.js b/spec/unit/crypto.spec.js index 67ed8db1921..55acf8b0461 100644 --- a/spec/unit/crypto.spec.js +++ b/spec/unit/crypto.spec.js @@ -110,6 +110,7 @@ describe("Crypto", function() { }); fakeEmitter.emit('toDeviceEvent', { + getId: jest.fn().mockReturnValue("$wedged"), getType: jest.fn().mockReturnValue('m.room.message'), getContent: jest.fn().mockReturnValue({ msgtype: 'm.bad.encrypted',