Sha256: 96a3dbd08fb5967f8a40bbbf6863dbd09c7b43a0b9b8897a099955638630f2e9

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

import { getEngineParent, setEngineParent } from '@ember/engine';
import { moduleFor, AbstractTestCase as TestCase } from 'internal-test-helpers';

moduleFor(
  'EngineParent',
  class extends TestCase {
    ["@test An engine's parent can be set with `setEngineParent` and retrieved with `getEngineParent`"](
      assert
    ) {
      let engine = {};
      let parent = {};

      assert.strictEqual(getEngineParent(engine), undefined, 'parent has not been set');

      setEngineParent(engine, parent);

      assert.strictEqual(getEngineParent(engine), parent, 'parent has been set');
    }
  }
);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/engine/tests/engine_parent_test.js
discourse-ember-source-3.5.1.1 dist/es/@ember/engine/tests/engine_parent_test.js
discourse-ember-source-3.5.1.0 dist/dist/es/@ember/engine/tests/engine_parent_test.js