Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(NODE-4910): clean up removed BSONTypeError from tests #546

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Jan 3, 2023

Description

What is changing?

Remove BSONTypeError checks in favor of BSONError
Update assertions that didn't check for an error class

What is the motivation for this change?

BSONTypeError was removed from src but not from tests.
The chai throws assertion has been enhanced to prevent the mistake.

Double check the following

  • Ran npm run lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

durran
durran previously approved these changes Jan 3, 2023
@durran durran added the Team Review Needs review from team label Jan 3, 2023
@durran
Copy link
Member

durran commented Jan 4, 2023

@nbbeeken Can we rebase then I'll go ahead and merge. Thanks!

@durran durran merged commit 9679ec3 into main Jan 4, 2023
@durran durran deleted the NODE-4910-rm-BSONTypeError-tests branch January 4, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants