Sha256: 98220677fc9f5add7df365815ff06d624e74a694db12346545833c7964f59092

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

import { AbstractTestCase } from 'internal-test-helpers';
import { runArrayTests } from '../helpers/array';

class CopyTest extends AbstractTestCase {
  '@test should return an equivalent copy'() {
    let obj = this.newObject();
    let copy = obj.copy();
    this.assert.ok(this.isEqual(obj, copy), 'old object and new object should be equivalent');
  }
}

runArrayTests('copy', CopyTest, 'CopyableNativeArray', 'CopyableArray');

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/runtime/tests/copyable-array/copy-test.js
discourse-ember-source-3.5.1.1 dist/es/ember-runtime/tests/copyable-array/copy-test.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-runtime/tests/copyable-array/copy-test.js