Skip to content

Commit 876e938

Browse files
committed
Add instanceof check in tests
1 parent 2c6084e commit 876e938

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/functions/src/callable.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ async function expectError(
5757
await promise;
5858
} catch (e) {
5959
failed = true;
60+
expect(e).to.be.instanceOf(FunctionsError);
6061
const error = e as FunctionsError;
6162
expect(error.code).to.equal(`${FUNCTIONS_TYPE}/${code}`);
6263
expect(error.message).to.equal(message);

0 commit comments

Comments
 (0)