Exemple #1
0
    describe('setLevel', () => {
        const oldLevel = logger.getLevel();

        afterEach(() => {
            logger.setLevel(oldLevel);
        });

        it('should update the log level', () => {
            logger.setLevel(logger.LEVELS.VERBOSE);
            expect( logger.getLevel() ).toBe(logger.LEVELS.VERBOSE);
        });
    });
Exemple #2
0
 it('should update the log level', () => {
     logger.setLevel(logger.LEVELS.VERBOSE);
     expect( logger.getLevel() ).toBe(logger.LEVELS.VERBOSE);
 });
Exemple #3
0
 it('should return LEVELS.SILENT when we are running tests', () => {
     expect( logger.getLevel() ).toBe(logger.LEVELS.SILENT);
 });
Exemple #4
0
  taffy = require('taffydb').taffy,
  handle = require('jsdoc/util/error').handle,
  helper = require('jsdoc/util/templateHelper'),
  moment = require('moment'),
  htmlsafe = helper.htmlsafe,
  sanitizeHtml = require('sanitize-html'),
  linkto = helper.linkto,
  resolveAuthorLinks = helper.resolveAuthorLinks,
  hasOwnProp = Object.prototype.hasOwnProperty,
  conf = env.conf.templates || {},
  data,
  view,
  outdir = env.opts.destination,
  searchEnabled = conf.search !== false;

logger.info('logger level', logger.getLevel());

var globalUrl = helper.getUniqueFilename('global');
var indexUrl = helper.getUniqueFilename('index');

if (conf.syntaxTheme) {
  logger.warn('`template.syntaxTheme` is ignored. You can change the syntax theme by modifying template/styles/main.less.');
}

var navOptions = {
  analytics: conf.analytics || null,
  collapseSymbols: conf.collapseSymbols || false,
  copyright: conf.copyright || '',
  dateFormat: conf.dateFormat,
  disablePackagePath: conf.disablePackagePath,
  footer: conf.footer || '',