This example shows how to use the Assert.throwsError() method to detect when certain functions will throw errors. This functionality replaces the _should.error options in previous YUI Test versions.
Assert.throwsError()
_should.error