kellyselden / ember-macro-test-helpers

Convenience methods for testing Ember.js macros
MIT License
2 stars 2 forks source link

ember-macro-test-helpers

Greenkeeper badge npm version Build Status

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
  });
});

Installation

ember install ember-macro-test-helpers

Usage

View all the possible ways to use here.

Contributing

Installation

Linting

Running tests

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.