Sha256: 9ac8c6a3d5633cb269fe24882faf766bcaa60727d0154c1464ea500fd6888d00
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
import { Object as EmberObject } from 'ember-runtime'; function K() { return this; } /** @module @ember/test */ /** The primary purpose of this class is to create hooks that can be implemented by an adapter for various test frameworks. @class TestAdapter @public */ export default EmberObject.extend({ /** 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. @public @method asyncStart */ asyncStart: K, /** This callback will be called whenever an async operation has completed. @public @method asyncEnd */ asyncEnd: K, /** 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: ```javascript exception: function(error) { ok(false, error); }; ``` @public @method exception @param {String} error The exception to be raised. */ exception(error) { throw error; }, });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.5.1.1 | dist/es/ember-testing/lib/adapters/adapter.js |
discourse-ember-source-3.5.1.0 | dist/dist/es/ember-testing/lib/adapters/adapter.js |