goatslacker / alt

Isomorphic flux implementation
http://alt.js.org/
3.45k stars 323 forks source link

refresh store on each test #637

Closed wassname closed 8 years ago

wassname commented 8 years ago

A suggestion for the docs/testing/stores.md. Refresh the store on each test using beforeAll.

noahmonster commented 8 years ago

This could be done with

afterEach(function () {
    alt.recycle(wrappedPetStore);
});
goatslacker commented 8 years ago

alt.recycle is the better way, yes