it('should rehydrate to fluxible routes', function () { storeInstance.rehydrate({ routes: routesResponse }); helperTests.testTransform( expect, storeInstance._routes, transformer.jsonToFluxible(routesResponse) ); });
it('should reproduce the fluxible routes', (done) => { const roundtrip = jsonToFluxible(fluxibleToJson(fluxibleRoutes)); cloneFixtures(); testTransform(expect, roundtrip, fluxibleRoutes); // check that the output action is workable roundtrip[testKey].action(context, {}, done); });
context.executeAction(routes, {}, function (err, fluxibleRoutes) { if (err) { return done(err); } testUtils.testTransform(expect, fluxibleRoutes, fluxibleRoutesFixture); checkTestPage(); done(); });