Releases: adopted-ember-addons/ember-data-factory-guy
Releases · adopted-ember-addons/ember-data-factory-guy
v2.13.21
- fixing use of mockCreate when used with new model
This used to break with using json-api adapter/serializer
let user = makeNew('user')
mockCreate(user);
v2.13.20
- fixing mockUpdate to only return data when return attrs are set
- mockUpdate(user) was previously returning data in payload and clearing out previously set variables in the model
let user = make('user');
mockUpdate(user); // now returns null payload by default
v2.13.19
v2.13.18
v2.13.17
- fixes pluralize deprecations #316 @krasnoukhov
- Use assign from ember polyfills ( fixes phantomjs usage ) #317 @krasnoukhov
- fixes creating model fragments manually in build/buildList/make/makeList and in belongsTo/hasMany factory methods
- can now use make / makeList with fragments
Now, you can use make/makeList to manually make fragments for a model like this:
let firstName = 'Joe',
lastName = 'Black',
name = make('name', {firstName: 'Joe', lastName: 'Black'}),
employee = make('employee', {name});
employee.get('name').getProperties(['firstName', 'lastName'])) // => {firstName: 'Joe', lastName: 'Black'}
v2.13.16
- fix willDestroy store override to ensure that original store.willDestroy is still used
v2.13.15
- mockSetup and mockTeardown are no longer needed
- factory guy now cleans up after itself when test is torn down.
- if you want to set the logLevel or responseTime do so like this:
FactoryGuy.settings({logLevel: 1, responseTime: 100});
v2.13.14
- WIP clean up variables in Factory Guy when store is destroyed to avoid memory leaks
v2.13.13
- super duper extra sure I finally got this working with fastboot