Skip to content

Fix bug in rtdb query get test #4366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/database/test/query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3131,7 +3131,7 @@ describe('Query Tests', () => {
it('get returns the latest value', async () => {
const node = getRandomNode() as Reference;
await node.set({ foo: 'bar' });
expect(node.get()).to.eventually.equal({ foo: 'bar' });
expect((await node.get()).val()).to.deep.equal({ foo: 'bar' });
});

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