Skip to content

Commit

Permalink
fix functions-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Nov 15, 2022
1 parent 65469c4 commit b3b8bc3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/functions-compat/src/callable.test.ts
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/
import { expect } from 'chai';
import { FunctionsErrorCode } from '@firebase/functions';
import { FunctionsError, FunctionsErrorCode } from '@firebase/functions';
import { createTestService } from '../test/utils';
import firebase, { FirebaseApp } from '@firebase/app-compat';

Expand All @@ -35,9 +35,9 @@ async function expectError(
await promise;
} catch (e) {
failed = true;
expect(e.code).to.equal(code);
expect(e.message).to.equal(message);
expect(e.details).to.deep.equal(details);
expect((e as FunctionsError).code).to.equal(code);
expect((e as FunctionsError).message).to.equal(message);
expect((e as FunctionsError).details).to.deep.equal(details);
}
if (!failed) {
expect(false, 'Promise should have failed.').to.be.true;
Expand Down

0 comments on commit b3b8bc3

Please sign in to comment.