Skip to content

♻️Clean up amp-form test stubs handling Promises#25539

Merged
caroqliu merged 1 commit intoampproject:masterfrom
caroqliu:form-test-promise
Nov 11, 2019
Merged

♻️Clean up amp-form test stubs handling Promises#25539
caroqliu merged 1 commit intoampproject:masterfrom
caroqliu:form-test-promise

Conversation

@caroqliu
Copy link
Copy Markdown
Contributor

Replace stub.returns(Promise.resolve(x)) with stub.resolves(x). Same goes for Promise.reject.

Copy link
Copy Markdown
Contributor

@wassgha wassgha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@caroqliu caroqliu merged commit 4072f76 into ampproject:master Nov 11, 2019
@caroqliu caroqliu deleted the form-test-promise branch November 11, 2019 19:52
caroqliu added a commit that referenced this pull request Nov 14, 2019
micajuine-ho pushed a commit to micajuine-ho/amphtml that referenced this pull request Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants