"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = require("@testing-library/react");
var useWorkflowColor_1 = require("./useWorkflowColor");
describe('useWorkflowColor behaviour', function () {
    beforeEach(function () {
        (0, useWorkflowColor_1.resetTaskToColor)();
    });
    var getColor = function (type) {
        var initialProps = { processDefinitionDisplayName: type };
        return (0, react_1.renderHook)(useWorkflowColor_1.useWorkflowColor, { initialProps: initialProps }).result.current;
    };
    it('should use same colors for same types', function () {
        expect(getColor('1')).toBe('#DC057B');
        expect(getColor('2')).toBe('#5DC003');
        expect(getColor('1')).toBe('#DC057B');
        expect(getColor('2')).toBe('#5DC003');
    });
    it('should use colors from beginning if amount of types is greater than amount of colors', function () {
        expect(getColor('1')).toBe('#DC057B');
        expect(getColor('2')).toBe('#5DC003');
        expect(getColor('3')).toBe('#FEC92F');
        expect(getColor('4')).toBe('#F57F27');
        expect(getColor('5')).toBe('#B71137');
        expect(getColor('6')).toBe('#056B97');
        expect(getColor('7')).toBe('#4499AE');
        expect(getColor('8')).toBe('#BD81BE');
        expect(getColor('9')).toBe('#5F3577');
        expect(getColor('10')).toBe('#A68560');
        expect(getColor('11')).toBe('#555962');
        expect(getColor('12')).toBe('#DC057B');
        expect(getColor('13')).toBe('#5DC003');
        expect(getColor('1')).toBe('#DC057B');
    });
});
