Skip to content

Commit c00cb81

Browse files
author
Brian Chen
committed
fix test to pass
1 parent 10857ff commit c00cb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/test/integration/api/database.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ apiDescribe('Database', persistence => {
974974
it('can not clear persistence if the client has been initialized', async () => {
975975
await withTestDoc(persistence, async docRef => {
976976
const firestore = docRef.firestore;
977-
await expect(firestore.clearPersistence()).to.eventually.be.rejectedWith(
977+
await expect(() => firestore.clearPersistence()).to.throw(
978978
'Persistence cannot be cleared while the client is running'
979979
);
980980
});

0 commit comments

Comments
 (0)