ember-intl / cp-validations

ember-intl support for ember-cp-validations
MIT License
10 stars 13 forks source link

Use Ember.warn #16

Closed hell03610 closed 7 years ago

hell03610 commented 7 years ago

I would like to silence the warnings the library throw on some tests. So Ember.warn should be used instead of Ember.logger.warn. That way the warnings can be silenced in tests by a configuration like this:

Ember.Debug.registerWarnHandler((message, options, next) => {
  let ignoredWarnings=[
    'ember-intl-no-locale-set',
    'ember-intl-missing-translation'];
  if(ignoredWarnings.includes(options.id)) { return; }

  return next(message, options);
});
jasonmit commented 7 years ago

Thanks! The test failures don't look to be related.

jasonmit commented 7 years ago

Versioned as 2.4.0