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

Update documentation for the Error function in assert or require package #1675

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

architagr
Copy link

Summary

Incorrect assert.Error() docs

Changes

Removing the if statement and the Equal call from the example.

Motivation

Since we already have EqualError, the documentation is trying to use assert.Equal to assert the error object's content.

Related issues

Closes #1609

@architagr architagr changed the title Update documentation for the Error function in assert or require package #1609 Update documentation for the Error function in assert or require package Nov 2, 2024
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.

Incorrect require.Error() docs
1 participant