Skip to content

Commit a8c6b8f

Browse files
nbbeekendurran
andcommitted
durran: test name improvements
Co-authored-by: Durran Jordan <[email protected]>
1 parent 1e0c7b3 commit a8c6b8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/node/object_id_tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const isBufferOrUint8Array = require('./tools/utils').isBufferOrUint8Array;
1010

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

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

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

0 commit comments

Comments
 (0)