expect(promise.state()).toEqual('resolved')