Add a detail argument to the fail() method to allow for more in-depth tracking of failures, especially when using the `toThrow()` expectation

Description

Add a detail argument to the fail() method to allow for more in-depth tracking of failures, especially when using the toThrow() expectation. The actual stacktrace and exception was swalled up, so it was nearly impossible to figure out unless adding hard try/catches

 

1 2 3 4 settings.rulessource = "json"; expect( function(){ security.configure(); }).toThrow( "Security.RulesFileNotDefined" );

 

Status

Assignee

Luis Majano

Reporter

Luis Majano

Labels

None

Fix versions

Priority

Major