Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leonlatsch committed Apr 23, 2024
1 parent 56449b4 commit 45f9e4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/service/gogaddy_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ func TestPrintDomainDetails(t *testing.T) {
godaddyApiFake := api.GodaddyApiFake{}

service := service.GodaddyService{
Config: &models.Config{},
GodaddyApi: &godaddyApiFake,
IpApi: &api.IpApiFake{},
LastIp: "",
}

t.Run("Get domain details does not crash with correct json response", func(t *testing.T) {
Expand Down Expand Up @@ -51,7 +53,7 @@ func TestOnIpChanged(t *testing.T) {
}

service := service.GodaddyService{
Config: conf,
Config: &conf,
GodaddyApi: &godaddyApiFake,
IpApi: &api.IpApiFake{},
}
Expand Down

0 comments on commit 45f9e4f

Please sign in to comment.