Sha256: e08460e02057f6a2cfb05b735b6ff9bb634a1dd22041fe8106fb84addf918fd6

Contents?: true

Size: 684 Bytes

Versions: 2

Compression:

Stored size: 684 Bytes

Contents

import { isChrome, isFirefox } from 'ember-browser-environment';
import { checkHasSuper } from '..';
import { moduleFor, AbstractTestCase as TestCase } from 'internal-test-helpers';

// Only run this test on browsers that we are certain should have function
// source available.  This allows the test suite to continue to pass on other
// platforms that correctly (for them) fall back to the "always wrap" code.
if (isChrome || isFirefox) {
  moduleFor(
    'checkHasSuper',
    class extends TestCase {
      ['@test does not super wrap needlessly [GH #12462]'](assert) {
        assert.notOk(checkHasSuper(function() {}), 'empty function does not have super');
      }
    }
  );
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-utils/tests/checkHasSuper_test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-utils/tests/checkHasSuper_test.js