This repository was archived by the owner on May 27, 2022. It is now read-only.
Repository navigation
Enhancements
yllr.make()now accepts any non-undefinedvalue as a context.- Contextual
yllrobject now has acontext():stringmethod that returns the specified context. - New
yllr.onFail()handler (also on contextualyllrobjects) allows failed check behavior to be customized (e.g. to result in a failed assertion in NodeJS which produces a nice stack trace). - New
yllr.tokenize()is used to defer token substitution in tokenized messages so that custom failure handlers don't have to worry about having to understand how to substitute tokens in messages.
Bug Fixes
- Only the first occurrence of a token would be replaced with its associated value. All occurrences are now replaced with its value.
Breaking Changes
- When instantiating a new error resulting from a failed check, the error constructor is no longer called with tokens. The expected signature is now
function(message:String, context:*)andmessagecontains substituted token values.
Other Changes
- Updated all package dependencies to comply with npm3 peer dependency changes.
- Added
karma:globaldebuggrunt target for debugging unit tests in the global deployment scenario.