Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
maneesht committed May 23, 2022
1 parent 2f82052 commit c976987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/database/test/exp/integration.test.ts
Expand Up @@ -112,11 +112,11 @@ describe('Database@exp Tests', () => {
const initial = [{ name: 'child1' }, { name: 'child2' }];

let count = 0;
await set(testRef, initial);
onValue(testRef, snapshot => {
expect(snapshot.val()).to.deep.eq(initial);
count++;
});
await set(testRef, initial);
await get(query(testRef, limitToFirst(1)));
await waitFor(2000);
expect(count).to.equal(1);
Expand Down

0 comments on commit c976987

Please sign in to comment.