expect((m.callbacks.onError as jest.Mock).mock.calls[0][0]).toContain(errMsg);