Skip to content

Commit

Permalink
Finishing off whois tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brimstone committed Jun 12, 2016
1 parent b917ca3 commit 8dc5b62
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions whois_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main_test

import (
"fmt"
"log"
"testing"

Expand Down Expand Up @@ -83,5 +82,10 @@ func TestGetWhoisInfo(*testing.T) {
if err != nil {
log.Fatal(err)
}
fmt.Println(result)
if len(result.Nameservers) == 0 {
log.Fatal("Expected Nameservers")
}
if len(result.Emails) == 0 {
log.Fatal("Expected Email addresses")
}
}

0 comments on commit 8dc5b62

Please sign in to comment.