Skip to content

Commit

Permalink
test: Do not use API when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shrink committed Nov 21, 2024
1 parent 60d6279 commit 50c1fe7
Show file tree
Hide file tree
Showing 12 changed files with 4,707 additions and 919 deletions.
4 changes: 4 additions & 0 deletions __tests__/fixtures/198.51.100.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ip": "198.51.100.1",
"bogon": true
}
51 changes: 51 additions & 0 deletions __tests__/fixtures/8.8.8.8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"ip": "8.8.8.8",
"hostname": "dns.google",
"anycast": true,
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.4056,-122.0775",
"org": "AS15169 Google LLC",
"postal": "94043",
"timezone": "America/Los_Angeles",
"asn": {
"asn": "AS15169",
"name": "Google LLC",
"domain": "google.com",
"route": "8.8.8.0/24",
"type": "hosting"
},
"company": {
"name": "Google LLC",
"domain": "google.com",
"type": "hosting"
},
"privacy": {
"vpn": false,
"proxy": false,
"tor": false,
"relay": false,
"hosting": true,
"service": ""
},
"abuse": {
"address": "US, CA, Mountain View, 1600 Amphitheatre Parkway, 94043",
"country": "US",
"email": "[email protected]",
"name": "Abuse",
"network": "8.8.8.0/24",
"phone": "+1-650-253-0000"
},
"domains": {
"ip": "8.8.8.8",
"total": 12095,
"domains": [
"hdchina.org",
"musicool.cn",
"allnet.cn",
"aonode.com",
"didifilm.com"
]
}
}
Loading

0 comments on commit 50c1fe7

Please sign in to comment.