Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
maneesht committed Jan 13, 2025
1 parent f3a5bb4 commit 8d71140
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/data-connect/test/unit/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,19 @@
* limitations under the License.
*/

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

import { getDataConnect } from '../../src';
import { validateArgs } from '../../src/util/validateArgs';
describe('Utils', () => {
let defaultApp: FirebaseApp;
beforeEach(() => {
defaultApp = initializeApp({ projectId: 'p' });
});
afterEach(async () => {
await deleteApp(defaultApp);
});
it('[Vars required: true] should throw if no arguments are provided', () => {
const connectorConfig = { connector: 'c', location: 'l', service: 's' };
expect(() =>
Expand Down

0 comments on commit 8d71140

Please sign in to comment.