Skip to content

Commit

Permalink
restore env
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaidma committed Sep 12, 2016
1 parent f51e6c2 commit ab9bc39
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/seneca-options.test.js
Expand Up @@ -6,6 +6,7 @@ var Lab = require('lab')
var lab = exports.lab = Lab.script()
var describe = lab.describe
var it = lab.it
var after = lab.after
var Code = require('code')
var expect = Code.expect
var _ = require('lodash')
Expand All @@ -25,8 +26,13 @@ var _ = require('lodash')
// Deprecated logging arguments:
// --seneca.log=plugin:foo bar // space works as val separator
// --seneca.log=level:info,type:plugin,handler:print

var initialEnv = process.argv
describe('seneca --seneca.log arguments tests', function () {
after(function (done) {
process.argv = initialEnv
done()
})

it('--seneca.log=level:warn', function (done) {
process.argv = ['', '', '--seneca.log=level:warn']
var si = Seneca()
Expand Down

0 comments on commit ab9bc39

Please sign in to comment.