KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
QUnit has an assertion for testing that a function raises an exception ( QUnit/raises ). Is it possible -- using QUnit -- to assert that a function does not raise an exception. I realize that it is possible to test it like in the following code: try { theTest(); ok(true); } catch (e) { ok(false, "Expected to succeed"); } But I think it ought to be possible using QUnit. Any clues?
Tags (comma-separated)
Save Edits
Cancel