Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time. Cannot retrieve contributors at this time
49 lines (33 sloc) 1.14 KB
import { Suite } from 'ember-runtime/tests/suites/suite';
var CopyableTests = Suite.extend({
/*
__Required.__ You must implement this method to apply this mixin.
Must be able to create a new object for testing.
@returns {Object} object
*/
newObject: null,
/*
__Required.__ You must implement this method to apply this mixin.
Compares the two passed in objects. Returns true if the two objects
are logically equivalent.
@param {Object} a
First object
@param {Object} b
Second object
@returns {Boolean}
*/
isEqual: null,
/*
Set this to true if you expect the objects you test to be freezable.
The suite will verify that your objects actually match this. (i.e. if
you say you can't test freezable it will verify that your objects really
aren't freezable.)
@type Boolean
*/
shouldBeFreezable: false
});
import copyTests from 'ember-runtime/tests/suites/copyable/copy';
import frozenCopyTests from 'ember-runtime/tests/suites/copyable/frozenCopy';
CopyableTests.importModuleTests(copyTests);
CopyableTests.importModuleTests(frozenCopyTests);
export default CopyableTests;