Skip to content

Add an ObjectValue builder #2671

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 5 commits into from
Feb 25, 2020
Merged

Conversation

schmidt-sebastian
Copy link
Contributor

@schmidt-sebastian schmidt-sebastian commented Feb 24, 2020

Port of firebase/firebase-android-sdk#1150

Many more PRs to come. See firebase/firebase-android-sdk#1217 for reference.

Copy link
Contributor

@var-const var-const left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description of the PR refers to issue 115 which seems unrelated, can you please double-check?

expect(objValue.value()).to.deep.equal(expected);
expect(objValue2.value()).to.deep.equal(expected);
expect(objValue3.value()).to.deep.equal(expected);
expect(objValue4.value()).to.deep.equal(expected);
});

it('can delete multiple fields', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: add a test showing it's possible to set and immediately delete fields? (e.g., set a, b, c, delete b, check that the end result only has a, c)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a test.

@schmidt-sebastian
Copy link
Contributor Author

The description of the PR refers to issue 115 which seems unrelated, can you please double-check?

It's #1150. I updated the description.

@schmidt-sebastian schmidt-sebastian merged commit b739763 into master Feb 25, 2020
@schmidt-sebastian schmidt-sebastian deleted the mrschmidt/rewritefieldvalue-1 branch February 28, 2020 23:03
@firebase firebase locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants