Skip to content

Commit

Permalink
test: hopefully fix Node v4 tests on 5.x branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Oct 19, 2021
1 parent 92bfcb7 commit 7b4e4e7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -58,7 +58,6 @@
"mkdirp": "0.5.5",
"mocha": "5.x",
"moment": "2.x",
"mongoose-long": "0.2.1",
"node-static": "0.7.11",
"object-sizeof": "1.3.0",
"pug": "2.0.3",
Expand Down
20 changes: 0 additions & 20 deletions test/model.update.test.js
Expand Up @@ -2123,26 +2123,6 @@ describe('model: update:', function() {
});
});

it('update handles casting with mongoose-long (gh-4283)', function(done) {
require('mongoose-long')(mongoose);

const Model = db.model('Test', {
number: { type: mongoose.Types.Long }
});

Model.create({ number: mongoose.mongo.Long.fromString('0') }, function(error) {
assert.ifError(error);
Model.update({}, { $inc: { number: mongoose.mongo.Long.fromString('2147483648') } }, function(error) {
assert.ifError(error);
Model.findOne({ number: { $type: 18 } }, function(error, doc) {
assert.ifError(error);
assert.ok(doc);
done();
});
});
});
});

it('single nested with runValidators (gh-4420)', function(done) {
const FileSchema = new Schema({
name: String
Expand Down

0 comments on commit 7b4e4e7

Please sign in to comment.