Fix args to shell.sudo

This commit is contained in:
Girish Ramakrishnan
2018-11-25 14:57:17 -08:00
parent 6cd8e769be
commit 802011bb7e
12 changed files with 22 additions and 27 deletions

View File

@@ -32,7 +32,7 @@ describe('shell', function () {
});
it('cannot sudo invalid program', function (done) {
shell.sudo('test', [ 'randomprogram' ], function (error) {
shell.sudo('test', [ 'randomprogram' ], {}, function (error) {
expect(error).to.be.ok();
done();
});
@@ -40,7 +40,7 @@ describe('shell', function () {
it('can sudo valid program', function (done) {
var RELOAD_NGINX_CMD = path.join(__dirname, '../src/scripts/reloadnginx.sh');
shell.sudo('test', [ RELOAD_NGINX_CMD ], function (error) {
shell.sudo('test', [ RELOAD_NGINX_CMD ], {}, function (error) {
expect(error).to.be.ok();
done();
});