不要怂,就是干,撸起袖子干!

Commit f5d6c287 by Sushant

Fix(#1150) deepClone to check findOne/All properly clones option

1 parent 649e43cd
......@@ -96,7 +96,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
include: ['name']
}
};
var optionsClones = _.clone(options);
var optionsClones = _.cloneDeep(options);
return Model.findAll(options).bind(this).then(function () {
expect(options).to.deep.equal(optionsClones);
});
......
......@@ -71,7 +71,7 @@ describe(Support.getTestDialectTeaser('Model'), function() {
it('properly clones options values', function() {
var options = { where: { id: { $gt: 42 }}}
, optionsClones = _.clone(options)
, optionsClones = _.cloneDeep(options)
, Model = current.define('model');
return Model.findOne(options).bind(this).then(function () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!