Skip to content
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

Improved test coverage #16

Merged
merged 4 commits into from
Sep 17, 2014
Merged

Improved test coverage #16

merged 4 commits into from
Sep 17, 2014

Conversation

jwngr
Copy link

@jwngr jwngr commented Sep 14, 2014

  • Got rid of JSXTransformer in test suite since it is not needed
  • Simplified firebaseRef validation (we ran into a Node bug with this
    old validation in GeoFire so we should change it here as well)
  • Added a bunch of tests to improve code coverage
  • Simplified existing tests

- Got rid of JSXTransformer in test suite since it is not needed
- Simplified firebaseRef validation (we ran into a Node bug with this
old validation in GeoFire so we should change it here as well)
- Added a bunch of tests to improve code coverage
- Simplified existing tests
@coveralls
Copy link

Coverage Status

Coverage increased (+20.0%) when pulling 25f9b59 on jw-testing into fcee54c on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+20.0%) when pulling 3fe583a on jw-testing into fcee54c on master.

@jwngr
Copy link
Author

jwngr commented Sep 14, 2014

@mimming - I wanted to leave you with a fully tested library, so here it is. It would probably also be good to add some more complex tests (e.g. bind to multiple places as once, bind to the same place multiple times as an array and as an object, etc.). But this test suite should catch most issues.

This also fixes a weird Node bug found in GeoFire. We should release 0.2.1 on Monday to get that fix out there.

Fixes issue #4.

@coveralls
Copy link

Coverage Status

Coverage increased (+20.0%) when pulling 9a84bff on jw-testing into fcee54c on master.

@@ -9,6 +9,8 @@ describe("ReactFireMixin Tests:", function() {

describe("bindAsArray():", function() {
it("bindAsArray() throws errors given invalid Firebase refs", function() {
var expectedError = new Error("ReactFire: firebaseRef must be an instance of Firebase");
Copy link
Contributor

Choose a reason for hiding this comment

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

binding the test to an error string seems kind of brittle. Is there any kind of error code or anything we can check for instead?

@mimming
Copy link
Contributor

mimming commented Sep 16, 2014

I'm still pretty green on this framework, but given that, everything in this commit looks pretty good. Do you trust me to merge it now, or should we wait until I get a better grip on the project?

@jwngr
Copy link
Author

jwngr commented Sep 16, 2014

Cool. Let me try to address your one comment about error codes before merging this in. I should be able to look at it sometime soon.

@coveralls
Copy link

Coverage Status

Coverage increased (+20.28%) when pulling 36b01f9 on jw-testing into fcee54c on master.

@jwngr
Copy link
Author

jwngr commented Sep 17, 2014

Back to you @mimming!

@mimming
Copy link
Contributor

mimming commented Sep 17, 2014

Thanks for the change. It LGTM. Merging now.

mimming added a commit that referenced this pull request Sep 17, 2014
@mimming mimming merged commit 2101ae8 into master Sep 17, 2014
@jwngr jwngr deleted the jw-testing branch October 26, 2014 19:07
@FirebaseExtended FirebaseExtended locked and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants