Remove irrelevant tests relating to consistency tracking.

This commit is contained in:
Rick Carlino 2018-01-02 09:00:14 -06:00
parent 59a4385430
commit a5051485fd
2 changed files with 0 additions and 18 deletions

View file

@ -29,13 +29,6 @@ function fakeResponse(config: Partial<FakeProps>): AxiosResponse {
}
describe("responseFulfilled", () => {
it("fires off inconsistency tracking", () => {
jest.clearAllMocks();
const resp = fakeResponse({ method: "post" });
responseFulfilled(resp);
expect(startTracking).toHaveBeenCalledWith(resp.headers["X-Farmbot-Rpc-Id"]);
});
it("won't fire for webcam feed updates", () => {
jest.clearAllMocks();
const resp = fakeResponse({

View file

@ -40,17 +40,6 @@ describe("<SyncButton/>", function () {
expect(result.hasClass("red")).toBeTruthy();
});
it("disables syncing when inconsistent", () => {
const dispatch = jest.fn();
const result = shallow(<SyncButton user={fakeUser()}
dispatch={dispatch}
bot={FAKE_BOT_STATE}
consistent={false}
autoSyncEnabled={true} />);
result.find("button").simulate("click");
expect(dispatch).not.toHaveBeenCalled();
});
it("syncs when clicked", () => {
const dispatch = jest.fn();
const result = shallow(<SyncButton user={fakeUser()}