Skip to content

Commit aa0a71f

Browse files
committed
fix functions-compat
1 parent 987bbdf commit aa0a71f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/functions-compat/src/callable.test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717
import { expect } from 'chai';
18-
import { FunctionsErrorCode } from '@firebase/functions';
18+
import { FunctionsError, FunctionsErrorCode } from '@firebase/functions';
1919
import { createTestService } from '../test/utils';
2020
import firebase, { FirebaseApp } from '@firebase/app-compat';
2121

@@ -35,9 +35,9 @@ async function expectError(
3535
await promise;
3636
} catch (e) {
3737
failed = true;
38-
expect(e.code).to.equal(code);
39-
expect(e.message).to.equal(message);
40-
expect(e.details).to.deep.equal(details);
38+
expect((e as FunctionsError).code).to.equal(code);
39+
expect((e as FunctionsError).message).to.equal(message);
40+
expect((e as FunctionsError).details).to.deep.equal(details);
4141
}
4242
if (!failed) {
4343
expect(false, 'Promise should have failed.').to.be.true;

0 commit comments

Comments
 (0)