Skip to content

Commit

Permalink
Merge branch 'legacy/10.x.x' into legacy/10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
alovicu committed Jul 22, 2022
2 parents 2d5757b + 4c98e63 commit 47788ae
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/ts/mongo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,19 +331,6 @@ describe('mongo', function () {
data.should.deep.equal({ myid: 'bbb', 'a.b.c.d': 1 });
});
});

it('should create a record with a date preserving its type', function () {
return request
.post('/dates')
.send({ myid: 'ts', ts: new Date() })
.expect(201)
.expect('Content-Type', /json/)
.then(async ({ body: data }) => {
const ref = await coll.findOne({}, { sort: { _id: -1 } });
await coll.remove({ myid: 'ts' });
ref.ts.should.be.a('Date');
});
});
});

describe('collection', function () {
Expand Down

0 comments on commit 47788ae

Please sign in to comment.