Repository navigation
restore setDataValue, fixed set issue with customGetter/Setter - #7328
Conversation
Codecov Report
Continue to review full report at Codecov.
|
|
|
||
| beforeEach(function() { | ||
| Account = this.sequelize.define('Account', { | ||
| this.Account = this.sequelize.define('Account', { |
There was a problem hiding this comment.
What's the benefit of using the shared test context over a scoped variable? You don't get any help from your editor for the text context
There was a problem hiding this comment.
Scope is already shared among tests, its just a good practice to keep shared data passed this way. Most modern editors support hinting variables defined this way as well, but i wasn't concerned about that.
|
that's nice, thanks @sushantdhiman 👍 |
|
@nemisj Please port it to v3 :) |
|
@sushantdhiman sure :) |
Fixed incorrect changes in
previousmethod working from #7189 (comment)Actual issue that PR was trying to solve was
incorrect previous value when using custom getter / setter. So I have added few more unit tests and a fix for that issue @nemisjThis will also conform with the fact that
_previousDataValuesshould be set in last stage of hook lifecycle.@BorisKozo @barriber initially pointed out this issue, you guys please have a look on new changes as well