Skip to content

Commit e6c0780

Browse files
Fix test
1 parent 7e17920 commit e6c0780

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/firestore/test/unit/util/misc.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ describe('typeCast', () => {
3838
class Foo {}
3939
class Bar {}
4040
const foo = new Foo();
41-
expect(debugCast(foo, Bar)).to.throw("Expected type 'Bar', but was 'Foo'");
41+
expect(() => debugCast(foo, Bar)).to.throw(
42+
"Expected type 'Bar', but was 'Foo'"
43+
);
4244
});
4345
});

0 commit comments

Comments
 (0)