Remove irrelevant tests relating to consistency tracking.
This commit is contained in:
parent
59a4385430
commit
a5051485fd
|
@ -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({
|
||||
|
|
|
@ -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()}
|
||||
|
|
Loading…
Reference in a new issue