ember-cli-accounting icon indicating copy to clipboard operation
ember-cli-accounting copied to clipboard

Integration tests

Open snewcomer opened this issue 7 years ago • 0 comments

Use in integration tests breaks w/ an initializer. Do I have to manually register like this.registry.register('helper:format-money', formatMoney); or do we have another option?

Failing here:

// our setup
import { currency } from 'accounting/settings';

export default {
  name: 'accounting.js',
  initialize() {
    currency.format = {
      pos: '%s%v',
      neg: '(%s%v)',
    };
  }
};

https://github.com/cibernox/ember-cli-accounting/blob/master/addon/format-money.js#L66

snewcomer avatar May 09 '17 18:05 snewcomer