Skip to content

Commit

Permalink
Also assert Error_
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Jan 8, 2024
1 parent a42dab7 commit 6e8f86b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions binding_tests/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,5 @@ func TestErrorNamedError(t *testing.T) {
err := errors.NewErrorNamedErrorError("it's an error")
var expectedError *errors.ErrorNamedError
assert.ErrorAs(t, err, &expectedError)
assert.Equal(t, "it's an error", expectedError.Unwrap().(*errors.ErrorNamedErrorError).Error_)
}

0 comments on commit 6e8f86b

Please sign in to comment.