Skip to content

Commit

Permalink
[CLEANUP beta] emberjs#16391 Cleaning up the test output
Browse files Browse the repository at this point in the history
  • Loading branch information
Draggha committed Mar 22, 2018
1 parent 6e1a34c commit a5f5be0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ember-metal/tests/libraries_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { moduleFor, AbstractTestCase } from 'internal-test-helpers';

let libs, registry;
let originalWarn = getDebugFunction('warn');
function noop() {}

moduleFor('Libraries registry', class extends AbstractTestCase {
beforeEach() {
Expand Down Expand Up @@ -33,6 +34,8 @@ moduleFor('Libraries registry', class extends AbstractTestCase {
['@test only the first registration of a library is stored'](assert) {
assert.expect(3);

// overwrite warn to supress the double registration warning (see https://github.com/emberjs/ember.js/issues/16391)
setDebugFunction('warn', noop);
libs.register('magic', 1.23);
libs.register('magic', 2.23);

Expand Down

0 comments on commit a5f5be0

Please sign in to comment.