"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@vived/core");
const SetEnvironmentIntensityUcMock_1 = require("../Mocks/SetEnvironmentIntensityUcMock");
const updateEnvironmentIntensity_1 = require("./updateEnvironmentIntensity");
function makeTestRig() {
    const appObjects = (0, core_1.makeAppObjectRepo)();
    const mockUC = (0, SetEnvironmentIntensityUcMock_1.makeSetEnvironmentIntensityUcMock)(appObjects);
    return { appObjects, mockUC };
}
describe("Update Environmental Intensity", () => {
    it("Sends the intensity to the UC", () => {
        const { mockUC, appObjects } = makeTestRig();
        (0, updateEnvironmentIntensity_1.updateEnvironmentIntensity)(0.99, appObjects);
        expect(mockUC.update).toHaveBeenCalledWith(0.99);
    });
});
//# sourceMappingURL=updateEnvironmentIntensity.test.js.map