"use strict";
/**
 * Test case for NavStylerManager
 *
 *  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 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/>.
 */
Object.defineProperty(exports, "__esModule", { value: true });
var expect = require('chai').expect;
var NavStylerManager_1 = require("../../../src/ui/nav/NavStylerManager");
describe('NavStylerManager', function () {
    describe('Calls delegate stylers', function () {
        it('#highlightStep', function () {
            var highlight_step_call_count = 0;
            var step_id = 123;
            var highlightStepFunc = function (id) {
                expect(id).to.equal(step_id);
                highlight_step_call_count++;
            };
            var styler_a = { highlightStep: highlightStepFunc };
            var styler_b = { highlightStep: highlightStepFunc };
            new NavStylerManager_1.NavStylerManager([styler_a, styler_b]).highlightStep(step_id);
            expect(highlight_step_call_count).to.equal(2);
        });
        it('#quoteLocked', function () {
            var quote_locked_call_count = 0;
            var locked = true;
            var quoteLockedFunc = function (given) {
                expect(given).to.equal(locked);
                quote_locked_call_count++;
            };
            var styler_a = { quoteLocked: quoteLockedFunc };
            var styler_b = { quoteLocked: quoteLockedFunc };
            new NavStylerManager_1.NavStylerManager([styler_a, styler_b]).quoteLocked(locked);
            expect(quote_locked_call_count).to.equal(2);
        });
    });
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTmF2U3R5bGVyTWFuYWdlclRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJOYXZTdHlsZXJNYW5hZ2VyVGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdz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