Skip to content

Commit

Permalink
moved mock API URL constants to test
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticrabbit committed Dec 21, 2021
1 parent 49d00ee commit c03ddff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import (
const (
prodAPIbase = "https://app.clickup.com/api"
prodAPIbaseV2 = "https://app.clickup.com/api/v2"
testAPIbase = "https://localhost/api"
testAPIbaseV2 = "https://localhost/api/v2"
)

// GetToken retrieves client ID, client secret, and localhost port, and implements
Expand Down
2 changes: 2 additions & 0 deletions internal/requester_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import (
"github.com/stretchr/testify/assert"
)

const testAPIbaseV2 = "https://localhost/api/v2"

func init() {
Client = &mocks.MockClient{}
}
Expand Down

0 comments on commit c03ddff

Please sign in to comment.