Skip to content

Commit

Permalink
Merge pull request #24 from synatic/develop
Browse files Browse the repository at this point in the history
1.2.0 - dependency updates
  • Loading branch information
thiren authored Jan 13, 2023
2 parents bede14e + 12a310f commit cafb2e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synatic/mongo-magic",
"version": "1.1.3",
"version": "1.2.0",
"description": "mongo magic utils",
"main": "index.js",
"files": [
Expand Down Expand Up @@ -45,10 +45,10 @@
},
"dependencies": {
"@synatic/json-magic": "^1.0.0",
"check-types": "11.1.2",
"check-types": "11.2.2",
"deepmerge": "4.2.2",
"moment": "2.29.4",
"mongodb": "^4.4.1",
"mongodb": "^4.13.0",
"odata-parser": "1.4.1"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions test/02. Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe('Collection', function () {
});

it('should update stats', function (done) {
const date = new Date();
const date = new Date('2022-05-04');
const momentDate = moment(date).utc();
const year = momentDate.year();
const month = (momentDate.month() + 1).toString().padStart(2, '0');
Expand All @@ -216,7 +216,7 @@ describe('Collection', function () {
collection.updateStats(
{
statsField: 'stats1',
date: new Date(),
date: momentDate.toDate(),
query: {val: 'a'},
increments: {
field: 'counter',
Expand All @@ -239,7 +239,7 @@ describe('Collection', function () {
});

it('should update stats at a different date', function (done) {
const date = new Date();
const date = new Date('2022-05-04');
const momentDate = moment(date).utc().subtract(1, 'month');
const year = momentDate.year();
const month = (momentDate.month() + 1).toString().padStart(2, '0');
Expand Down

0 comments on commit cafb2e7

Please sign in to comment.