Support for Elasticsearch 7.7 (#1192)
This commit is contained in:
committed by
GitHub
parent
be6257380e
commit
51169d5efa
@ -44,6 +44,7 @@ test('SerializationError', t => {
|
||||
t.true(err instanceof Error)
|
||||
t.true(err instanceof errors.ElasticsearchClientError)
|
||||
t.false(err.hasOwnProperty('meta'))
|
||||
t.true(err.hasOwnProperty('data'))
|
||||
t.end()
|
||||
})
|
||||
|
||||
@ -52,6 +53,7 @@ test('DeserializationError', t => {
|
||||
t.true(err instanceof Error)
|
||||
t.true(err instanceof errors.ElasticsearchClientError)
|
||||
t.false(err.hasOwnProperty('meta'))
|
||||
t.true(err.hasOwnProperty('data'))
|
||||
t.end()
|
||||
})
|
||||
|
||||
@ -78,3 +80,11 @@ test('ResponseError', t => {
|
||||
t.ok(err.headers)
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('RequestAbortedError', t => {
|
||||
const err = new errors.RequestAbortedError()
|
||||
t.true(err instanceof Error)
|
||||
t.true(err instanceof errors.ElasticsearchClientError)
|
||||
t.true(err.hasOwnProperty('meta'))
|
||||
t.end()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user