From a5f5be062f03f7a8b6d282906f9de5e62ccfc037 Mon Sep 17 00:00:00 2001 From: Johann Haaf Date: Thu, 22 Mar 2018 21:56:55 +0100 Subject: [PATCH] [CLEANUP beta] #16391 Cleaning up the test output --- packages/ember-metal/tests/libraries_test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/ember-metal/tests/libraries_test.js b/packages/ember-metal/tests/libraries_test.js index a08d6616755..90c283a49e9 100644 --- a/packages/ember-metal/tests/libraries_test.js +++ b/packages/ember-metal/tests/libraries_test.js @@ -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() { @@ -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);