<commit_before>/**
 * @venus-library jasmine
 * @venus-include ../../../../../moment/moment.js
 * @venus-include ../../../../src/functions.js
 * @venus-include ../../../../src/Lib/Logger/Handler/Interface.js
 * @venus-include ../../../../src/Lib/Logger/Interface.js
 * @venus-code ../../../../src/Lib/Logger/Handler/Console.js
 */

describe('console logger handler', function () {

    it('should not handle', function () {

        var handler = new Sy.Lib.Logger.Handler.Console('info');

        expect(handler.isHandling('error')).toBe(false);

    });

    it('should handle the level defined', function () {

        var handler = new Sy.Lib.Logger.Handler.Console('info');

        expect(handler.isHandling('info')).toBe(true);

    });

    it('should return itself', function () {

        var handler = new Sy.Lib.Logger.Handler.Console('info');

        expect(handler.handle('info', 'foo')).toEqual(handler);

    });

});<commit_msg>fix console logger handler UT<commit_after>/**
 * @venus-library jasmine
 * @venus-include ../../../../vendor/moment/moment.js
 * @venus-include ../../../../src/functions.js
 * @venus-include ../../../../src/Lib/Logger/Handler/Interface.js
 * @venus-include ../../../../src/Lib/Logger/Interface.js
 * @venus-code ../../../../src/Lib/Logger/Handler/Console.js
 */

describe('console logger handler', function () {

    it('should not handle', function () {

        var handler = new Sy.Lib.Logger.Handler.Console('info');

        expect(handler.isHandling('error')).toBe(false);

    });

    it('should handle the level defined', function () {

        var handler = new Sy.Lib.Logger.Handler.Console('info');

        expect(handler.isHandling('info')).toBe(true);
        expect(handler.isHandling('foo')).toBe(false);

    });

    it('should return itself', function () {

        var handler = new Sy.Lib.Logger.Handler.Console('info');

        expect(handler.handle('name', 'info', 'foo')).toEqual(handler);

    });

    it('should return say that the level does not exist', function () {

        expect(function () {
            var handler = new Sy.Lib.Logger.Handler.Console('foo');
        }).toThrow('Unknown logger level');

    });

});
{'fraction_non_alphanumeric': 0.21353930031803725, 'fraction_numerical': 0.0, 'mean_word_length': 2.5573505654281097, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '506496', 'n_tokens_mistral': 658, 'n_tokens_neox': 624, 'n_words': 118}