Skip to content

Commit

Permalink
feat: NotCompatibleError (#484)
Browse files Browse the repository at this point in the history
Signed-off-by: Timur Bolotov <bolotovtmr@gmail.com>
  • Loading branch information
timursaurus authored Apr 10, 2023
1 parent 21ccd77 commit 20e9282
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 20e9282

Please sign in to comment.