Skip to content

Commit 86b2bd4

Browse files
committed
Fixed test cases
Signed-off-by: Vishal Rana <[email protected]>
1 parent 97bd8b8 commit 86b2bd4

File tree

6 files changed

+117
-130
lines changed

6 files changed

+117
-130
lines changed

.idea/dictionaries/vr.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 95 additions & 122 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

domain_test.go

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,37 @@ import (
77
)
88

99
func TestClient_DomainDNS(t *testing.T) {
10-
res, err := client.DomainDNS(&domain.DNSRequest{Type: "A", Domain: "twillio.com"})
10+
res, err := client.DomainDNS(&domain.DNSRequest{
11+
Type: "A",
12+
Domain: "twilio.com",
13+
})
1114
if assert.Nil(t, err) {
1215
assert.NotZero(t, len(res.Records))
1316
}
1417
}
1518

1619
func TestClient_DomainSearch(t *testing.T) {
17-
res, err := client.DomainSearch(&domain.SearchRequest{Domain: "twillio.com"})
20+
res, err := client.DomainSearch(&domain.SearchRequest{
21+
Domain: "twilio.com",
22+
})
1823
if assert.Nil(t, err) {
1924
assert.NotZero(t, len(res.Results))
2025
}
2126
}
2227

2328
func TestClient_DomainStatus(t *testing.T) {
24-
res, err := client.DomainStatus(&domain.StatusRequest{Domain: "twillio.com"})
29+
res, err := client.DomainStatus(&domain.StatusRequest{
30+
Domain: "twilio.com",
31+
})
2532
if assert.Nil(t, err) {
2633
assert.Equal(t, "unavailable", res.Result)
2734
}
2835
}
2936

3037
func TestClient_DomainWhois(t *testing.T) {
31-
res, err := client.DomainWhois(&domain.WhoisRequest{Domain: "twillio.com"})
38+
res, err := client.DomainWhois(&domain.WhoisRequest{
39+
Domain: "twilio.com",
40+
})
3241
if assert.Nil(t, err) {
3342
assert.NotEmpty(t, res.Raw)
3443
}

email_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import (
77
)
88

99
func TestClient_EmailVerify(t *testing.T) {
10-
res, err := client.EmailVerify(&email.VerifyRequest{Email: "[email protected]"})
10+
res, err := client.EmailVerify(&email.VerifyRequest{
11+
12+
})
1113
if assert.Nil(t, err) {
1214
assert.Equal(t, "deliverable", res.Result)
1315
}

ip_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import (
77
)
88

99
func TestClient_IPLookup(t *testing.T) {
10-
res, err := client.IPLookup(&ip.LookupRequest{IP: "24.5.240.141"})
10+
res, err := client.IPLookup(&ip.LookupRequest{
11+
IP: "96.45.83.67",
12+
})
1113
if assert.Nil(t, err) {
1214
assert.NotEmpty(t, res.Country)
1315
}

webpage_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
func TestClient_WebpageImage(t *testing.T) {
1010
res, err := client.WebpageImage(&webpage.ImageRequest{
11-
URL: "http://google.com",
11+
URL: "amazon.com",
1212
})
1313
if assert.Nil(t, err) {
1414
assert.NotEmpty(t, res.Image)
@@ -17,7 +17,7 @@ func TestClient_WebpageImage(t *testing.T) {
1717

1818
func TestClient_WebpagePDF(t *testing.T) {
1919
res, err := client.WebpagePDF(&webpage.PDFRequest{
20-
URL: "http://google.com",
20+
URL: "amazon.com",
2121
})
2222
if assert.Nil(t, err) {
2323
assert.NotEmpty(t, res.PDF)

0 commit comments

Comments
 (0)