Skip to content

Commit

Permalink
fix: use quoted values in error assertion failure logs
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Kuruvilla <rohitpaulk@gmail.com>
  • Loading branch information
ryan-gang and rohitpaulk authored Jun 14, 2024
1 parent a3b7777 commit b665420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resp_assertions/error_assertion.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (a ErrorAssertion) Run(value resp_value.Value) error {
}

if value.Error() != a.ExpectedValue {
return fmt.Errorf("Expected %s, got %s", a.ExpectedValue, value.Error())
return fmt.Errorf("Expected %q, got %q", a.ExpectedValue, value.Error())
}

return nil
Expand Down

0 comments on commit b665420

Please sign in to comment.