From cacb592feebdf6793c30b6124f294c1c17355228 Mon Sep 17 00:00:00 2001 From: Timur Bolotov Date: Sun, 9 Apr 2023 19:46:16 +0600 Subject: [PATCH] feat: NotCompatibleError Signed-off-by: Timur Bolotov --- test/unit/errors.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/unit/errors.test.js b/test/unit/errors.test.js index 165c2e934..cf250b31d 100644 --- a/test/unit/errors.test.js +++ b/test/unit/errors.test.js @@ -64,6 +64,14 @@ test('NoLivingConnectionsError', (t) => { t.end(); }); +test('NotCompatibleError', (t) => { + const err = new errors.NotCompatibleError(); + t.ok(err instanceof Error); + t.ok(err instanceof errors.OpenSearchClientError); + t.ok(err.hasOwnProperty('meta')); + t.end(); +}); + test('SerializationError', (t) => { const err = new errors.SerializationError(); t.ok(err instanceof Error);