Sha256: bbb3c6aeea3c023e92e00c0aa174245a195b58c8ee0505b98804c8b58582a3cd
Contents?: true
Size: 608 Bytes
Versions: 1
Compression:
Stored size: 608 Bytes
Contents
import { OWNER, getOwner, setOwner } from '@ember/-internals/owner'; import { moduleFor, AbstractTestCase } from 'internal-test-helpers'; moduleFor( 'Owner', class extends AbstractTestCase { ['@test An owner can be set with `setOwner` and retrieved with `getOwner`'](assert) { let owner = {}; let obj = {}; assert.strictEqual(getOwner(obj), undefined, 'owner has not been set'); setOwner(obj, owner); assert.strictEqual(getOwner(obj), owner, 'owner has been set'); assert.strictEqual(obj[OWNER], owner, 'owner has been set to the OWNER symbol'); } } );
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.6.0.0 | dist/es/@ember/-internals/container/tests/owner_test.js |