Skip to content

Commit 31f8bd5

Browse files
authored
Fix bug in rtdb query get test (#4366)
1 parent 4cab3ec commit 31f8bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/database/test/query.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3131,7 +3131,7 @@ describe('Query Tests', () => {
31313131
it('get returns the latest value', async () => {
31323132
const node = getRandomNode() as Reference;
31333133
await node.set({ foo: 'bar' });
3134-
expect(node.get()).to.eventually.equal({ foo: 'bar' });
3134+
expect((await node.get()).val()).to.deep.equal({ foo: 'bar' });
31353135
});
31363136

31373137
it('get reads from cache if database is not connected', async () => {

0 commit comments

Comments
 (0)