all files / common/models/customization/ customization.mocha.js

100% Statements 5/5
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31                                                   
"use strict";
var tester_1 = require('immutable-class/build/tester');
var customization_1 = require('./customization');
describe('Customization', function () {
    it('is an immutable class', function () {
        tester_1.testImmutableClass(customization_1.Customization, [
            {
                headerBackground: "brown",
                customLogoSvg: "ansvgstring"
            }, {
                headerBackground: "green",
                externalViews: []
            }, {
                externalViews: [
                    {
                        title: "corporate dashboard",
                        linkGenerator: "return 'https://dashboard.corporate.com/'+filter.toString()",
                        sameWindow: true
                    }, {
                        title: "google docs",
                        linkGenerator: "return 'http://182.343.32.2273:8080/'+dataSource.name"
                    }, {
                        title: "google docs",
                        linkGenerator: "'return http://182.343.32.2273:8080/'+timezone.timezone"
                    }
                ]
            }
        ]);
    });
});