UNPKG

@tvkitchen/countertop

Version:

The entry point for developers who want to set up a TV Kitchen.

31 lines (28 loc) 1.24 kB
"use strict"; var _silentLogger = _interopRequireDefault(require("../silentLogger")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } describe('silentLogger #unit', () => { describe('default', () => { it('should support the log() method', () => { expect(() => _silentLogger.default.log('customLevel', 'Test message')).not.toThrow(); }); it('should support the fatal() method', () => { expect(() => _silentLogger.default.fatal('Test message')).not.toThrow(); }); it('should support the error() method', () => { expect(() => _silentLogger.default.error('Test message')).not.toThrow(); }); it('should support the warn() method', () => { expect(() => _silentLogger.default.warn('Test message')).not.toThrow(); }); it('should support the info() method', () => { expect(() => _silentLogger.default.info('Test message')).not.toThrow(); }); it('should support the debug() method', () => { expect(() => _silentLogger.default.debug('Test message')).not.toThrow(); }); it('should support the trace() method', () => { expect(() => _silentLogger.default.trace('Test message')).not.toThrow(); }); }); });