22 lines
606 B
TypeScript
22 lines
606 B
TypeScript
import { noop } from "lodash";
|
|
import { Everything } from "../interfaces";
|
|
import { peripherals as Peripheral } from "./fake_state/peripherals";
|
|
import { auth } from "./fake_state/token";
|
|
import { bot } from "./fake_state/bot";
|
|
import { config } from "./fake_state/config";
|
|
import { draggable } from "./fake_state/draggable";
|
|
import { resources } from "./fake_state/resources";
|
|
|
|
/** Factory function for empty state object. */
|
|
export function fakeState(_: Function = noop): Everything {
|
|
return {
|
|
dispatch: jest.fn(),
|
|
Peripheral,
|
|
auth,
|
|
bot,
|
|
config,
|
|
draggable,
|
|
resources
|
|
};
|
|
}
|