Assert.configure()
Syntax
interface AssertConfiguration {
prefixed?: boolean;
stringifyOptions?: StringifyOptions;
}
function configure(configuration: AssertConfiguration): void
Allows you to configure various behavior in regards to the assertion messages.
Parameters | |
configuration
|
A configuration object defining any of the below properties. |
configuration.prefixed
Optional
|
If Default is |
configuration.stringifyOptions
Optional
|
All non-generic assertion functions (i.e. functions where the condition to
test is defined by the function, not by callers) use The default configuration is |
Example
import { Numbers } from 'potence';
Assert.configure({
prefixed: false,
stringifyOptions: {
truncateContents: true
}
});