nit: I think you can simply use `sinon.assert.calledWithMatch(showMessageErrorSpy, 'OtherError', { messageId: message.id });`