Code coverage report for test/base/core/key.spec.js

# all files / test/base/core/ key.spec.js

100% Statements 15/15
100% Branches 0/0
100% Functions 8/8
100% Lines 14/14

    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
    291×
    1×

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

    1×
    1×

    1×
    1×
    1×

     (function(global){global.wrappers['/Users/lqez/Dev/summernote/test/base/core/key.spec.js']=[function(require,module,exports,__dirname,__filename){ "use strict";
    exports.__esModule = true;
    /**
     * key.spec.js
     * (c) 2013~ Alan Hong
     * summernote may be freely distributed under the MIT license./
     */
    var chai_1 = require("chai");
    var key_1 = require("../../../src/js/base/core/key");
    var expect = chai_1["default"].expect;
    describe('base:core.key', function () {
        describe('isEdit', function () {
            it('should return true for BACKSPACE', function () {
                expect(key_1["default"].isEdit(key_1["default"].code.BACKSPACE)).to.be["true"];
            });
            it('should return true for DELETE', function () {
                expect(key_1["default"].isEdit(key_1["default"].code.DELETE)).to.be["true"];
            });
        });
        describe('isMove', function () {
            it('should return true for LEFT', function () {
                expect(key_1["default"].isMove(key_1["default"].code.LEFT)).to.be["true"];
            });
        });
    });

    },'test/base/core/key.spec.js',{"chai":"/Users/lqez/Dev/summernote/node_modules/chai/index.js","../../../src/js/base/core/key":"/Users/lqez/Dev/summernote/src/js/base/core/key.js"}];})(this);
    //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5LnNwZWMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJrZXkuc3BlYy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBOzs7O0dBSUc7QUFDSCw2QkFBd0I7QUFDeEIscURBQWdEO0FBRWhELElBQUksTUFBTSxHQUFHLGlCQUFJLENBQUMsTUFBTSxDQUFDO0FBRXpCLFFBQVEsQ0FBQyxlQUFlLEVBQUU7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