Skip to content

Commit 85b9da9

Browse files
committed
Update unit test with latest data
1 parent b26e7b5 commit 85b9da9

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

__tests__/ipinfoWrapper.test.ts

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as dotenv from "dotenv";
2+
import { AsnResponse, IPinfo } from "../src/common";
23
import IPinfoWrapper from "../src/ipinfoWrapper";
3-
import { IPinfo, AsnResponse } from "../src/common";
44

55
let ipinfoWrapper: IPinfoWrapper;
66

@@ -109,13 +109,12 @@ describe("IPinfoWrapper", () => {
109109
expect(data["8.8.8.8/hostname"]).toEqual("dns.google");
110110
expect(data["4.4.4.4"]).toEqual({
111111
ip: "4.4.4.4",
112-
city: "Honolulu",
113-
region: "Hawaii",
114-
country: "United States",
115-
loc: "21.3179,-157.8521",
112+
city: "Rembangan",
113+
region: "Central Java",
114+
country: "Indonesia",
115+
loc: "-6.7036,111.3416",
116116
org: "AS3356 Level 3 Parent, LLC",
117-
postal: "96813",
118-
timezone: "Pacific/Honolulu",
117+
timezone: "Asia/Jakarta",
119118
asn: {
120119
asn: "AS3356",
121120
name: "Level 3 Parent, LLC",
@@ -125,7 +124,7 @@ describe("IPinfoWrapper", () => {
125124
},
126125
company: {
127126
name: "Level 3 Parent, LLC",
128-
domain: "lumen.com",
127+
domain: "level3.com",
129128
type: "isp"
130129
},
131130
privacy: {
@@ -147,16 +146,16 @@ describe("IPinfoWrapper", () => {
147146
},
148147
domains: {
149148
ip: "4.4.4.4",
150-
total: 110,
149+
total: 111,
151150
domains: [
152-
"dyyunyou.com",
153-
"itmg.ch",
154-
"cloudmaas.net",
155-
"datacenter-team.de",
156-
"fisiodiagnosticaragionieri.it",
151+
"itmanagementgroup.de",
152+
"safermoto.com",
153+
"progeni.com",
154+
"grahamhostedservices.com",
155+
"bhcentral.tech",
157156
]
158157
},
159-
countryCode: "US"
158+
countryCode: "ID"
160159
});
161160

162161
expect(data["AS123"]).toEqual({

0 commit comments

Comments
 (0)