diff --git a/package.json b/package.json index 938831954e..1bb6f21362 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "pg": "4.3.0", "react": "^0.13.1", "react-router": "^0.13.2", - "reflux": "^0.2.5", + "reflux": "^0.2.10", "reqwest": "^1.1.4", "webpack": "1.7.3", "webpack-dev-middleware": "^1.0.11" @@ -66,7 +66,7 @@ "chai": "2.1.2", "coveralls": "^2.11.2", "istanbul": "^0.3.5", - "jest-cli": "0.4.0", + "jest-cli": "0.4.15", "jshint": "^2.6.0", "mocha": "^2.1.0", "mocha-lcov-reporter": "0.0.2", diff --git a/public/js/__tests__/components/feature/ArchiveFeatureComponent-test.js b/public/js/__tests__/components/feature/ArchiveFeatureComponent-test.js index 7a874aec6d..110013aed3 100644 --- a/public/js/__tests__/components/feature/ArchiveFeatureComponent-test.js +++ b/public/js/__tests__/components/feature/ArchiveFeatureComponent-test.js @@ -1,11 +1,11 @@ jest.dontMock("../../../components/feature/ArchiveFeatureComponent"); -jest.mock("../../../stores/FeatureToggleServerFacade"); +jest.mock("../../../stores/FeatureToggleActions"); jest.autoMockOff(); var React = require("react/addons"); var TestUtils = React.addons.TestUtils; var FeatureArchive = require("../../../components/feature/ArchiveFeatureComponent"); -var Server = require("../../../stores/FeatureToggleServerFacade"); +var FeatureActions = require("../../../stores/FeatureToggleActions"); var FeatureToggleStore = require("../../../stores/ArchivedToggleStore"); describe("FeatureForm", function () { @@ -35,6 +35,6 @@ describe("FeatureForm", function () { TestUtils.Simulate.click(button); jest.runAllTimers(); - expect(Server.reviveFeature).toBeCalled(); + expect(FeatureActions.revive.triggerPromise).toBeCalled(); }); });