Skip to content

Commit 8d71140

Browse files
committed
Fix testing
1 parent f3a5bb4 commit 8d71140

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/data-connect/test/unit/utils.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@
1515
* limitations under the License.
1616
*/
1717

18+
import { deleteApp, FirebaseApp, initializeApp } from '@firebase/app';
1819
import { expect } from 'chai';
1920

2021
import { getDataConnect } from '../../src';
2122
import { validateArgs } from '../../src/util/validateArgs';
2223
describe('Utils', () => {
24+
let defaultApp: FirebaseApp;
25+
beforeEach(() => {
26+
defaultApp = initializeApp({ projectId: 'p' });
27+
});
28+
afterEach(async () => {
29+
await deleteApp(defaultApp);
30+
});
2331
it('[Vars required: true] should throw if no arguments are provided', () => {
2432
const connectorConfig = { connector: 'c', location: 'l', service: 's' };
2533
expect(() =>

0 commit comments

Comments
 (0)