"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockDispatcher = void 0;
exports.makeMockDispatcher = makeMockDispatcher;
const AppDispatcher_1 = require("../Entities/AppDispatcher");
class MockDispatcher extends AppDispatcher_1.AppDispatcher {
    constructor(appObject) {
        super(appObject, AppDispatcher_1.AppDispatcher.type);
        this.dispatch = jest.fn();
        this.formRequestAndDispatch = jest.fn();
    }
}
exports.MockDispatcher = MockDispatcher;
function makeMockDispatcher(appObjects) {
    return new MockDispatcher(appObjects.getOrCreate("Dispatcher"));
}
//# sourceMappingURL=MockDispatcher.js.map