Skip to content

Conversation

@tcannon91
Copy link
Collaborator

No description provided.

@tcannon91
Copy link
Collaborator Author

@addaleax 👋 could I get a review when you get a chance? I don't have the ability to add reviewers

assert(minKey instanceof MinKey, "minKey should be an instance of MinKey");
assert.strictEqual(minKey.tojson(), '{ "$minKey" : 1 }', "minKey should serialize correctly");
assert.strictEqual(minKey.toString(), "[object Function]", "minKey toString should work");
assert.strictEqual(minKey.toJSON(), '{ "$minKey" : 1 }', "minKey toJSON should work");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big deal, but passing a static string as a message for assert.strictEqual() and friends is an antipattern since it will hide information about the actual comparison results – if you want to add this type of information, add a comment

@tcannon91
Copy link
Collaborator Author

@addaleax I think this is ready to merge -- my latest push just addresses the comment about assertion messages.

@addaleax addaleax merged commit ca5ead1 into mongodb-labs:main Dec 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants