Skip to content

README.md throwError example with better clarity#73

Open
rm-rf-etc wants to merge 1 commit into
Automattic:masterfrom
rm-rf-etc:patch-1
Open

README.md throwError example with better clarity#73
rm-rf-etc wants to merge 1 commit into
Automattic:masterfrom
rm-rf-etc:patch-1

Conversation

@rm-rf-etc

Copy link
Copy Markdown

I found the throwError example confusing so I updated the readme based on the example found on SO:
http://stackoverflow.com/questions/4144686/how-to-write-a-test-which-expects-an-error-to-be-thrown

I found the throwError example confusing so I updated the readme based on the example found on SO:
http://stackoverflow.com/questions/4144686/how-to-write-a-test-which-expects-an-error-to-be-thrown
@truongsinh

Copy link
Copy Markdown

You don't have to use closure for normal functions, just use withArgs. However, closure is a must for methods. Should we have a plugin for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants