ember-logger-test
Test Ember.Logger
assertions with ease.
Installation
ember install ember-logger-test
Usage
ember-logger-test
adds a custom assertion to QUnit called logs
:
logs
expects three arguments:
- The log type, including
assert
,debug
,error
,info
,log
, andwarn
. - The expected message to be logged.
- A callback that triggers the logger.
Note: you must use assert.expect
to ensure that the logs were run.