Class TestAdapter
publicimport TestAdapter from '@ember/test/adapter'; |
The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks.
asyncEnd public
Defined in packages/ember-testing/lib/adapters/adapter.js:28
This callback will be called whenever an async operation has completed.
asyncStart public
Defined in packages/ember-testing/lib/adapters/adapter.js:17
This callback will be called whenever an async operation is about to start.
Override this to call your framework's methods that handle async operations.
exception (error) public
Defined in packages/ember-testing/lib/adapters/adapter.js:36
- error
- String
- The exception to be raised.
Override this method with your testing framework's false assertion. This function is called whenever an exception occurs causing the testing promise to fail.
QUnit example:
1 2 3 |
exception: function(error) { ok(false, error); }; |