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

test suite and constructor setup #1

Closed
wants to merge 7 commits into from

Conversation

HipsterBrown
Copy link
Contributor

This PR adds the same test suite used in the other PouchDB-Hoodie plugins:

  • istanbul
  • istanbul-coveralls
  • pouchdb
  • semantic-release
  • standard
  • tap-spec
  • tape
  • zuul

It adds a spec for the plugin constructor.

Adds initial constructor index.js for plugin.

It also contains an updated README to more accurately the API covered by this plugin.

store.on('update', function(object, options) {})
store.on('remove', function(object, options) {})
store.on('change', function(eventName, object, options) {})
store.on('sync', function(object) {})
Copy link
Member

Choose a reason for hiding this comment

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

instead of sync, we now have

  • pull
  • push

and also

  • connect
  • disconnect

see https://github.com/hoodiehq/pouchdb-hoodie-sync#usage

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should I also add the .isConnected() method as store.isConnected()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's also no clear event in pouchdb-hoodie-sync, correct?

Copy link
Member

Choose a reason for hiding this comment

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

ah good point, not yet, but there should! I'll add it to the issue, you can add it to the README already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants