Skip to content

Commit

Permalink
test(model): repro #5190
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Apr 30, 2017
1 parent 4771b05 commit 958bbb2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/model.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5569,6 +5569,18 @@ describe('Model', function() {
});
});

it('insertMany with Decimal (gh-5190)', function(done) {
var schema = new mongoose.Schema({
amount : mongoose.Schema.Types.Decimal
});
var Money = db.model('gh5190', schema);

Money.insertMany([{ amount : '123.45' }], function(error) {
assert.ifError(error);
done();
});
});

it('bulkWrite casting updateMany, deleteOne, deleteMany (gh-3998)', function(done) {
var schema = new Schema({
str: String,
Expand Down

0 comments on commit 958bbb2

Please sign in to comment.