@nullnullnull wrote:
I'm using
Ember.Logger.error:if (isInvalid) { Ember.Logger.error('this is invalid'); }I want to test it in qunit:
assert.throws(() => myFunction(), /this is invalid/, 'error was thrown');But
assert.throwsdoesn't catch the error. It does if I replaceEmber.Logger.errorwith a simplethrowstatement, but surely there's a way to test for logged Ember errors. Anyone know the way?
Posts: 1
Participants: 1