Skip to content

Commit

Permalink
Add instanceof check in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dlarocque committed Sep 30, 2024
1 parent 2c6084e commit 876e938
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/functions/src/callable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async function expectError(
await promise;
} catch (e) {
failed = true;
expect(e).to.be.instanceOf(FunctionsError);
const error = e as FunctionsError;
expect(error.code).to.equal(`${FUNCTIONS_TYPE}/${code}`);
expect(error.message).to.equal(message);
Expand Down

0 comments on commit 876e938

Please sign in to comment.