Skip to content

Commit

Permalink
Add a test for undefined deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
kayakyakr committed Apr 15, 2016
1 parent 0d41e82 commit f7bc3e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/deprecation-collector-test.js
Expand Up @@ -29,6 +29,11 @@ window.deprecationWorkflow.config = {
};`);
});

test('deprecation does not choke when called with poorly formatted messages', (assert) => {
Ember.deprecate('silence-me', undefined, undefined);
assert.ok(true, 'Deprecation did not raise');
});

test('deprecations are not duplicated', function(assert) {
Ember.deprecate('First deprecation', false, { id: 'first', until: 'forever' });
Ember.deprecate('Second deprecation', false, { id: 'second', until: 'forever' });
Expand Down

0 comments on commit f7bc3e4

Please sign in to comment.