hippagriff/pipeline — pull request #21 by darcyadams (2014-10-09 13:24:55+00:00)
Title: Testing fixes

Tests now work because
- Instantiation of the stores now happens inside the dispatchers `getStores` methods. Jest does not like module to be instantiated as part of the module creation or require process.
- localStorage is now abstracted inside a module `utilities/local_storage` so that jest can mock.

Note that even though jest claims to mock modules by default, it seems to not mock modules required inside of modules you are not mocking. In these cases you explicitly tell jest to mock a module.