Plato on Github
Report Home
test/spec/log.js
Maintainability
145.67
Lines of code
43
Difficulty
6.47
Estimated Errors
0.34
Function weight
By Complexity
By SLOC
define('spec/log', ['lyria/log'], function(Log) { describe('lyria/log', function() { it('is an object', function() { expect(Log).to.be.a('object'); }); describe('.plugins', function() { it('property exists', function() { expect(Log).to.have.property('plugins'); expect(Log.plugins).to.be.a('object'); }); it('Console plugin does exist', function() { expect(Log.plugins).to.have.property('console'); expect(Log.plugins.console).to.be.a('object'); }); }); describe('.connector', function() { it('property exists', function() { expect(Log).to.have.property('connector'); }); it('is bound to the console plugin by default', function() { expect(Log.connector).to.equal(Log.plugins.console); }); }); it('.logLevelMap', function() { expect(Log).to.have.property('logLevelMap'); expect(Log.logLevelMap).to.be.a('object'); }); it('.logLevel', function() { expect(Log).to.have.property('logLevel'); expect(Log.logLevel).to.be.a('string'); }); }); });