Code coverage report for test/base/module/Fullscreen.spec.js

# all files / test/base/module/ Fullscreen.spec.js

100% Statements 21/21
100% Branches 0/0
100% Functions 5/5
100% Lines 20/20

    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
    321×

    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×
    1×

    1×
    1×
    1×
    1×
    1×
    1×

     (function(global){global.wrappers['/Users/lqez/Dev/summernote/test/base/module/Fullscreen.spec.js']=[function(require,module,exports,__dirname,__filename){ "use strict";
    /**
     * Fullscreen.spec.js
     * (c) 2015~ Summernote Team
     * summernote may be freely distributed under the MIT license./
     */
    exports.__esModule = true;
    var chai_1 = require("chai");
    var jquery_1 = require("jquery");
    var Context_1 = require("../../../src/js/base/Context");
    var Fullscreen_1 = require("../../../src/js/base/module/Fullscreen");
    require("../../../src/js/bs4/settings");
    describe('Fullscreen', function () {
        var expect = chai_1["default"].expect;
        var fullscreen, context;
        beforeEach(function () {
            var options = jquery_1["default"].extend({}, jquery_1["default"].summernote.options);
            context = new Context_1["default"](jquery_1["default"]('<div><p>hello</p></div>'), options);
            fullscreen = new Fullscreen_1["default"](context);
        });
        it('should toggle fullscreen mode', function () {
            expect(fullscreen.isFullscreen()).to.be["false"];
            fullscreen.toggle();
            expect(fullscreen.isFullscreen()).to.be["true"];
            fullscreen.toggle();
            expect(fullscreen.isFullscreen()).to.be["false"];
        });
    });

    },'test/base/module/Fullscreen.spec.js',{"chai":"/Users/lqez/Dev/summernote/node_modules/chai/index.js","jquery":"/Users/lqez/Dev/summernote/node_modules/jquery/dist/jquery.js","../../../src/js/base/Context":"/Users/lqez/Dev/summernote/src/js/base/Context.js","../../../src/js/base/module/Fullscreen":"/Users/lqez/Dev/summernote/src/js/base/module/Fullscreen.js","../../../src/js/bs4/settings":"/Users/lqez/Dev/summernote/src/js/bs4/settings.js"}];})(this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