Skip to content

Commit

Permalink
feat: NotCompatibleError (opensearch-project#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 and AMoo-Miki committed Jul 12, 2023
1 parent b0b9c44 commit bb34981
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 bb34981

Please sign in to comment.