Skip to content

Commit

Permalink
fix: test basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwewant committed Sep 5, 2023
1 parent 4b4726e commit 24c9440
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func TestSetUserAgent(t *testing.T) {
func TestConfigSetBasicAuth(t *testing.T) {
f := New()
f.SetBasicAuth("user", "passwd")
testify.Equal(t, "Basic dXNlcjpwYXNzd2Q", f.config.Headers.Get(headers.Authorization))
testify.Equal(t, "Basic dXNlcjpwYXNzd2Q=", f.config.Headers.Get(headers.Authorization))
}

func TestConfigSetBearToken(t *testing.T) {
Expand Down

0 comments on commit 24c9440

Please sign in to comment.