-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(open/openapi/validate): return promises, fix tests (#410)
* refactor(validate): use console.info(), return promise - console.info is so we can safely use console.log() statements when debugging more easily - returning the value allows us to write more robust tests * refactor: return expect, rather than async/await with no return idk, this just felt weird... i hate JS * test: check for resolved output, rather than console output * refactor: return Promise and update test - returning the value allows us to write more robust tests * refactor: return promise in openapi.js, use console.info - console.info() makes it so it's easier for us to use console.log while debugging - returning the promise allows us to write more robust tests * test: refactor tests to check for command output * fix: don't allow to create new version from doc commands * revert: don't fix docs stuff in this branch This reverts commit afeaf7b. For the sake of confining the scope of these changes, I'm reverting this and will fix this in a separate PR focused on our docs commands. * Apply suggestions from code review Co-authored-by: Jon Ursenbach <[email protected]> Co-authored-by: Jon Ursenbach <[email protected]>
- Loading branch information
1 parent
5b2220c
commit 8b9ad4b
Showing
6 changed files
with
128 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.