tests: cleanup common variables
This commit is contained in:
@@ -11,7 +11,7 @@ const expect = require('expect.js'),
|
||||
|
||||
describe('shell', function () {
|
||||
it('can run valid program', function (done) {
|
||||
var cp = shell.spawn('test', 'ls', [ '-l' ], { }, function (error) {
|
||||
let cp = shell.spawn('test', 'ls', [ '-l' ], { }, function (error) {
|
||||
expect(cp).to.be.ok();
|
||||
expect(error).to.be(null);
|
||||
done();
|
||||
@@ -40,7 +40,7 @@ describe('shell', function () {
|
||||
});
|
||||
|
||||
it('can sudo valid program', function (done) {
|
||||
var RELOAD_NGINX_CMD = path.join(__dirname, '../src/scripts/restartservice.sh');
|
||||
let RELOAD_NGINX_CMD = path.join(__dirname, '../src/scripts/restartservice.sh');
|
||||
shell.sudo('test', [ RELOAD_NGINX_CMD, 'nginx' ], {}, function (error) {
|
||||
expect(error).to.be.ok();
|
||||
done();
|
||||
|
||||
Reference in New Issue
Block a user