This was incorporated into https://github.com/kellyselden/ember-macro-helpers/pull/233.
This comes with a compute
helper. Here is a sample usage:
import myMacro from 'my-app/macros/my-macro';
import compute from 'ember-macro-test-helpers/compute';
// ...
test('it works', function(assert) {
compute({
assert,
computed: myMacro('key1', 'key2'),
properties: {
key1: 1,
key2: 2
},
strictEqual: 3
});
});
ember install ember-macro-test-helpers
View all the possible ways to use here.
git clone <repository-url>
cd ember-macro-test-helpers
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"ember try:each
– Runs the test suite against multiple Ember versionsember serve
For more information on using ember-cli, visit https://ember-cli.com/.
This project is licensed under the MIT License.