Fix #311 by setting default for tests to 'silent'
This commit is contained in:
parent
7415daed0c
commit
9f83eaa7a2
|
@ -30,9 +30,7 @@ var Cylon = require("./../");
|
||||||
|
|
||||||
Cylon.config({
|
Cylon.config({
|
||||||
mode: "manual",
|
mode: "manual",
|
||||||
logging: {
|
silent: true
|
||||||
logger: false
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Cylon.Logger.setup();
|
Cylon.Logger.setup();
|
||||||
|
|
|
@ -4,7 +4,6 @@ var config = lib("config");
|
||||||
|
|
||||||
describe("config", function() {
|
describe("config", function() {
|
||||||
it("contains configuration options", function() {
|
it("contains configuration options", function() {
|
||||||
expect(config.logging).to.be.an("object");
|
|
||||||
expect(config.testMode).to.be.eql(false);
|
expect(config.testMode).to.be.eql(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ describe("Logger", function() {
|
||||||
afterEach(function() {
|
afterEach(function() {
|
||||||
// to be friendly to other specs
|
// to be friendly to other specs
|
||||||
Config.logger = false;
|
Config.logger = false;
|
||||||
|
Config.silent = false;
|
||||||
Logger.setup();
|
Logger.setup();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue