Skip to content

Commit

Permalink
durran: test name improvements
Browse files Browse the repository at this point in the history
Co-authored-by: Durran Jordan <[email protected]>
  • Loading branch information
nbbeeken and durran authored Nov 23, 2022
1 parent 0518c26 commit 96724ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/node/object_id_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const isBufferOrUint8Array = require('./tools/utils').isBufferOrUint8Array;

describe('ObjectId', function () {
describe('static createFromTime()', () => {
it('should create an objectId with user defined value in the timestamp field', function () {
it('creates an objectId with user defined value in the timestamp field', function () {
const a = ObjectId.createFromTime(1);
expect(a.id.slice(0, 4)).to.deep.equal(Buffer.from([0, 0, 0, 1]));
expect(a.getTimestamp()).to.deep.equal(new Date(1 * 1000));
Expand All @@ -19,7 +19,7 @@ describe('ObjectId', function () {
});

describe('getTimestamp()', () => {
it('should fetch the big endian int32 leading the Oid and create a Date instance', function () {
it('fetches the big endian int32 leading the Oid and create a Date instance', function () {
const a = new ObjectId('00000002' + '00'.repeat(8));
expect(a.id.slice(0, 4)).to.deep.equal(Buffer.from([0, 0, 0, 2]));
expect(Object.prototype.toString.call(a.getTimestamp())).to.equal('[object Date]');
Expand All @@ -28,7 +28,7 @@ describe('ObjectId', function () {
});
});

it('should create an objectId with user defined value in the timestamp field', function () {
it('creates an objectId with user defined value in the timestamp field', function () {
const a = ObjectId.createFromTime(1);
expect(a.id.slice(0, 4)).to.deep.equal(Buffer.from([0, 0, 0, 1]));
expect(a.getTimestamp()).to.deep.equal(new Date(1 * 1000));
Expand Down

0 comments on commit 96724ce

Please sign in to comment.