1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Rewrote failing test

This commit is contained in:
ivaosthu 2015-07-22 14:49:30 +02:00
parent c510e1f456
commit df66df2f5c
2 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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();
});
});