Ember.testing is a getter/setter in Ember, and destructuring like this will only read its value at the time the module is evaluated. In this case, Ember.testing will most likely be false when the module is evaluated, then change to trueduring the test. This behavior somewhat recently changed in https://github.com/emberjs/ember-test-helpers/pull/227 (which is included in ember-cli-qunit@4.1.0 / ember-qunit@3.0.0).
I believe the fix here would be to remove the destructuring, and use Ember.testing directly inline.
Ember.testing
is a getter/setter in Ember, and destructuring like this will only read its value at the time the module is evaluated. In this case,Ember.testing
will most likely befalse
when the module is evaluated, then change totrue
during the test. This behavior somewhat recently changed in https://github.com/emberjs/ember-test-helpers/pull/227 (which is included inember-cli-qunit@4.1.0
/ember-qunit@3.0.0
).I believe the fix here would be to remove the destructuring, and use
Ember.testing
directly inline.https://github.com/tsteuwer/ember-tracker/blob/2b2c86e4b96389ce61de11c9e263ebcc36ef3f87/addon/mixins/tealium-route.js#L16-L20
https://github.com/tsteuwer/ember-tracker/blob/2b2c86e4b96389ce61de11c9e263ebcc36ef3f87/addon/mixins/tealium-route.js#L38-L40