We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I know doctests are supposed to be simple, but when one needs to match against objects, it is getting not pretty.
/** * @example * transition(newgame(), 'playerTwo') * // => { state: 'normal', playerOne: 'love', playerTwo: 15 } */
For the first part of assert I can do
/** * @example * (function() { * * const game = newgame(); * return transition(game, 'playerTwo'); * * })() * // => { state: 'normal', playerOne: 'love', playerTwo: 15 } */
so that is kinda multiline, although its not very pretty.
But the result object needs to be written in one line :(
The text was updated successfully, but these errors were encountered:
@yamadapc Would a PR be welcome?
Sorry, something went wrong.
Sure a PR would be welcome
Successfully merging a pull request may close this issue.
I know doctests are supposed to be simple, but when one needs to match against objects, it is getting not pretty.
For the first part of assert I can do
so that is kinda multiline, although its not very pretty.
But the result object needs to be written in one line :(
The text was updated successfully, but these errors were encountered: