"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 *  Tests for System Controller
 *
 *  Copyright (C) 2010-2020 R-T Specialty, LLC.
 *
 *  This file is part of the Liza Data Collection Framework.
 *
 *  liza is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
var SystemController_1 = require("../../../src/dullahan/controllers/SystemController");
var chai_1 = require("chai");
var sinon_express_mock_1 = require("sinon-express-mock");
describe('SystemController', function () {
    describe('healthcheck', function () {
        it('response with 204 code when healthy', function () {
            var req = sinon_express_mock_1.mockReq({});
            var res = sinon_express_mock_1.mockRes({});
            SystemController_1.system.healthcheck(req, res);
            chai_1.expect(res.status.withArgs(204).callCount).to.equal(1);
        });
    });
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU3lzdGVtQ29udHJvbGxlclRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJTeXN0ZW1Db250cm9sbGVyVGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBbUJHO0FBQ0gsdUZBQWlGO0FBQ2pGLDZCQUE0QjtBQUM1Qix5REFBb0Q7QUFFcEQsUUFBUSxDQUFDLGtCQUFrQixFQUFFO0lBQzNCLFFBQVEsQ0FBQyxhQUFhLEVBQUU7UUFDdEIsRUFBRSxDQUFDLHFDQUFxQyxFQUFFO1lBQ3hDLElBQU0sR0FBRyxHQUFHLDRCQUFPLENBQUMsRUFBRSxDQUFDLENBQUM7WUFDeEIsSUFBTSxHQUFHLEdBQUcsNEJBQU8sQ0FBQyxFQUFFLENBQUMsQ0FBQztZQUV4Qix5QkFBRyxDQUFDLFdBQVcsQ0FBQyxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUM7WUFFMUIsYUFBTSxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxDQUFDLFNBQVMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDekQsQ0FBQyxDQUFDLENBQUM7SUFDTCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMsQ0FBQyxDQUFDIn0=