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 7c15fb0 commit 9b6b0b3Copy full SHA for 9b6b0b3
packages/rules-unit-testing/test/database.test.ts
@@ -301,6 +301,22 @@ describe('Testing Module Tests', function () {
301
});
302
303
304
+ it('should allow transaction after clearFirestoreData', async function () {
305
+ await firebase.clearFirestoreData({
306
+ projectId: 'foo'
307
+ });
308
+ const app = firebase.initializeTestApp({
309
310
311
+
312
+ const doc = app.firestore().doc('test/test');
313
+ await firebase.assertSucceeds(
314
+ app.firestore().runTransaction(async transaction => {
315
+ await transaction.get(doc);
316
+ })
317
+ );
318
319
320
it('apps() returns apps created with initializeTestApp', async function () {
321
const numApps = firebase.apps().length;
322
await firebase.initializeTestApp({ databaseName: 'foo', auth: undefined });
0 commit comments