0xgeert / flux-test

2 stars 0 forks source link

Allow for declarative setting `async`, `optimistic` and `waitfor` #11

Closed 0xgeert closed 10 years ago

0xgeert commented 10 years ago

This transforms stream in promises (also in sync case). Moreover class must present success and fail callbacks. Lastly, waitfor must be implemented declaratively

relates to #1

0xgeert commented 10 years ago

depends on #7 (pouchDB) to be able to test async mode with real backend.

0xgeert commented 10 years ago

relates to #9 (async callbacks, general flow)

0xgeert commented 10 years ago

Completely implemented. e.g.:

    {
        "TODO_CREATE": {
          fn: "onTodoCreate",
          async: true,
          optimistic: true
        }
    }