We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10857ff commit c00cb81Copy full SHA for c00cb81
packages/firestore/test/integration/api/database.test.ts
@@ -974,7 +974,7 @@ apiDescribe('Database', persistence => {
974
it('can not clear persistence if the client has been initialized', async () => {
975
await withTestDoc(persistence, async docRef => {
976
const firestore = docRef.firestore;
977
- await expect(firestore.clearPersistence()).to.eventually.be.rejectedWith(
+ await expect(() => firestore.clearPersistence()).to.throw(
978
'Persistence cannot be cleared while the client is running'
979
);
980
});
0 commit comments