mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
update readme
This commit is contained in:
@@ -14,19 +14,16 @@ const searcher3 = Searcher.newWithFileOnly(dbPath)
|
||||
describe('ip2region', () => {
|
||||
it('#newWithFileOnly and search', async () => {
|
||||
const d = await searcher3.search('218.4.167.70')
|
||||
console.log(d)
|
||||
expect(d.region).equal('中国|0|江苏省|苏州市|电信')
|
||||
})
|
||||
|
||||
it('#newWithVectorIndex and search', async () => {
|
||||
const d = await searcher2.search('218.4.167.70')
|
||||
console.log(d)
|
||||
expect(d.region).equal('中国|0|江苏省|苏州市|电信')
|
||||
})
|
||||
|
||||
it('#newWithBuffer and search', async () => {
|
||||
const d = await searcher1.search('218.4.167.70')
|
||||
|
||||
expect(d.region).equal('中国|0|江苏省|苏州市|电信')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user