Skip to content

Commit

Permalink
change app initialization parameters to prevent clobbering in 'utils.…
Browse files Browse the repository at this point in the history
…test.ts' test cases
  • Loading branch information
stephenarosaj committed Oct 15, 2024
1 parent ed76645 commit a0ecb6f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/data-connect/test/unit/QueryManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,27 @@ import chaiAsPromised from 'chai-as-promised';

import {
DataConnect,
DataConnectOptions,
executeQuery,
getDataConnect,
mutationRef,
queryRef,
queryRef
} from '../../src';
import { Code, DataConnectError } from '../../src/core/error';
chai.use(chaiAsPromised);
const options: DataConnectOptions = {
connector: 'c',
location: 'l',
projectId: 'p',
service: 's'
};

describe('Query Manager Tests', () => {
let dc: DataConnect;
let app: FirebaseApp;
const APPID = 'MYAPPID';
const APPNAME = 'MYAPPNAME';

beforeEach(() => {
app = initializeApp({ projectId: 'p' });
dc = getDataConnect(app, options);
app = initializeApp({ projectId: 'p', appId: APPID }, APPNAME);
dc = getDataConnect(app, {
connector: 'c',
location: 'l',
service: 's'
});
});
afterEach(async () => {
await dc._delete();
Expand Down

0 comments on commit a0ecb6f

Please sign in to comment.