import { makeAppObjectRepo } from "@vived/core";
import { makeObjectPickEntity } from "../Entities/ObjectPickEntity";
import { toggleIsSelectingCorrectObjectPicks } from "./toggleIsSelectingCorrectObjectPicks";
function makeTestRig() {
    const appObjects = makeAppObjectRepo();
    const objectPick = makeObjectPickEntity(appObjects.getOrCreate("Object Pick"));
    return { appObjects, objectPick };
}
describe("Clear correct object pick IDs", () => {
    it("Toggles the is selecting flag", () => {
        const { appObjects, objectPick } = makeTestRig();
        objectPick.isSelectingCorrectObjects = true;
        toggleIsSelectingCorrectObjectPicks(appObjects);
        expect(objectPick.isSelectingCorrectObjects).toEqual(false);
        toggleIsSelectingCorrectObjectPicks(appObjects);
        expect(objectPick.isSelectingCorrectObjects).toEqual(true);
    });
});
//# sourceMappingURL=toggleIsSelectingCorrectObjectPicks.test.js.map