Integration tests
Opened this issue · 0 comments
snewcomer commented
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