Updated test

This commit is contained in:
delvedor
2018-12-10 20:14:51 +01:00
parent a9e621721e
commit 230b08ab86
5 changed files with 264 additions and 9 deletions

View File

@ -5,6 +5,7 @@ import {
ApiResponse,
EventMeta,
SniffMeta,
ResurrectMeta,
events
} from '../../index'
@ -13,6 +14,7 @@ const client = new Client({ node: 'http://localhost:9200' })
client.on(events.REQUEST, (err: Error | null, meta: EventMeta) => {})
client.on(events.RESPONSE, (err: Error | null, meta: EventMeta) => {})
client.on(events.SNIFF, (err: Error | null, meta: SniffMeta) => {})
client.on(events.RESURRECT, (err: Error | null, meta: ResurrectMeta) => {})
// Callbacks
client.info((err: Error | null, result: ApiResponse) => {})