Giter Club home page Giter Club logo

Comments (4)

ransomw avatar ransomw commented on June 26, 2024

so i spent a little time on this: setting up my editor for standard style, reading simple-mock, and mostly reading the hoodie source for the first time in over a year... i'd been editing test/specs/init.js for some time before i realized that this involves writing tests and implementing the connect() functionality, and i dunno if i should claim ownership of this issue as such. i will continue to watch it and try further edits.

from hoodie-client.

gr2m avatar gr2m commented on June 26, 2024

@ransomw if you only want to write the tests, that’s totally okay, we can split this issue up in two PRs

from hoodie-client.

ransomw avatar ransomw commented on June 26, 2024

so i went ahead and did both the test and implementation w/ separate PRs for each and finer-grained commits in iss54-* branches of the fork.

i feel like this was a great starter issue to get familiar w/ the collaborative process. i didn't want to muck w/ the existing tests too much, so i pretty much just matched existing patterns. one idea that occurred to me that i didn't implement, for instance, is extracting the account stub setup from the individual tests, b/c i'm not certain if this would be considered an improvement. anyway, that can be discussed in PR comments.

one thing to mention here is that i noticed the following warning on the can chain plugins calls test running on node v5.5.0:

  (node) warning: possible EventEmitter memory leak detected. 11 destroyed listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at EventEmitter.addListener (events.js:252:17)
    at setUpEventEmitter (.../hoodie-client/node_modules/pouchdb/lib/index.js:2360:9)
    at Function.PouchDB.defaults (.../hoodie-client/node_modules/pouchdb/lib/index.js:2463:3)
    at new Store (.../hoodie-client/node_modules/hoodie-client-store/index.js:45:31)
    at Store (.../hoodie-client/node_modules/hoodie-client-store/index.js:19:40)
    at new CustomStore (.../hoodie-client/node_modules/hoodie-client-store/index.js:107:12)
    at new Hoodie (.../hoodie-client/index.js:25:15)
    at Test.<anonymous> (.../hoodie-client/tests/specs/plugin.js:29:16)
    at Test.bound [as _cb] (.../hoodie-client/node_modules/tape/lib/test.js:61:32)
    at Test.run (.../hoodie-client/node_modules/tape/lib/test.js:77:10)

from hoodie-client.

gr2m avatar gr2m commented on June 26, 2024

great work @ransomw πŸ‘

we can ignore the EventEmitter warning for now. It's a built-in feature of https://nodejs.org/api/events.html to help you avoid memory leaks. We might need to bump the limit before the warning occurs, but want to implement all outstanding features and fix all known bugs first

from hoodie-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.