2.1.1 • Published 7 years ago
ember-cli-testdouble-qunit v2.1.1
ember-cli-testdouble-qunit
This Ember addon exposes testdouble-qunit so that you can easily consume it in your application.
Installation
First, install the library. It is assumed that your tests are already written in QUnit; ember-cli-testdouble will be installed for you if missing.
ember install ember-cli-testdouble-qunitNext, install the assertion helper. Add the following anywhere in your tests/test-helper.js file:
// tests/test-helper.js
import 'ember-cli-testdouble-qunit';And you're good to go!
Usage
This library adds a assert.verify method that allows you to verify that your stubs are called correctly.
test('the stub is called', function(assert) {
const stub = td.function();
stub('foo');
assert.verify(stub('foo'));
});For more information, check out the testdouble.js documentation.
2.1.1
7 years ago
2.1.0
7 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
2.0.0-beta.2
8 years ago
2.0.0-beta.1
8 years ago
2.0.0-beta.0
8 years ago