Sha256: 9803f220479179b9870d48bd2142c24f6085e6f5b98d951914702a0f9bfb079e

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

import { Mixin } from '../..';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';

moduleFor(
  'without',
  class extends AbstractTestCase {
    ['@test without should create a new mixin excluding named properties'](assert) {
      let MixinA = Mixin.create({
        foo: 'FOO',
        bar: 'BAR',
      });

      let MixinB = MixinA.without('bar');

      let obj = {};
      MixinB.apply(obj);

      assert.equal(obj.foo, 'FOO', 'should defined foo');
      assert.equal(obj.bar, undefined, 'should not define bar');
    }
  }
);

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/metal/tests/mixin/without_test.js
discourse-ember-source-3.5.1.1 dist/es/ember-metal/tests/mixin/without_test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-metal/tests/mixin/without_test.js