Sha256: 1a131a4690e00d2eb11a72dea08ed451658de58728ccbf67494db6dc164dcdd1

Contents?: true

Size: 491 Bytes

Versions: 2

Compression:

Stored size: 491 Bytes

Contents

import { isEmpty } from 'ember-metal';
import ArrayProxy from '../../lib/system/array_proxy';
import { A as emberA } from '../../lib/mixins/array';
import { moduleFor, AbstractTestCase } from 'internal-test-helpers';

moduleFor(
  'Ember.isEmpty',
  class extends AbstractTestCase {
    ['@test Ember.isEmpty'](assert) {
      let arrayProxy = ArrayProxy.create({ content: emberA() });

      assert.equal(true, isEmpty(arrayProxy), 'for an ArrayProxy that has empty content');
    }
  }
);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-runtime/tests/core/is_empty_test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-runtime/tests/core/is_empty_test.js