diff --git a/packages/-ember-data/tests/unit/model-test.js b/packages/-ember-data/tests/unit/model-test.js index c05d4ed3843..4f34e0c75a5 100644 --- a/packages/-ember-data/tests/unit/model-test.js +++ b/packages/-ember-data/tests/unit/model-test.js @@ -608,7 +608,9 @@ module('unit/model - Model', function(hooks) { record.on('event!', F); - assert.expectDeprecation(/Called event! on person/); + if (DEBUG) { + assert.expectDeprecation(/Called event! on person/); + } record.trigger('event!');