Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Add async/await into /specs/wp-post-editor-spec.js #1164

Merged
merged 3 commits into from
Apr 26, 2018
Merged

Conversation

Stojdza
Copy link
Contributor

@Stojdza Stojdza commented Apr 25, 2018

Moving forward with async/await usage.

To properly use await, functions should return promise object. Since some of them didn't return anything, I added missing returns - 091d7ae

@alisterscott
Copy link
Contributor

This looks good @Stojdza !

Out of interest, why do not test.describe blocks need to be updated to specify async? Is there a reason for this?

Copy link
Contributor

@alisterscott alisterscott left a comment

Choose a reason for hiding this comment

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

LGTM

@Stojdza
Copy link
Contributor Author

Stojdza commented Apr 26, 2018

@alisterscott Here is one good explanation - mochajs/mocha#2975 (comment)
Anyway, I tried to run tests with async in describe blocks, just to see what will happen, and all tests have failed. Enough for me :)

@alisterscott alisterscott deleted the try/post-editor branch April 26, 2018 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants