I am using Mocha and Chai.js to test a function which executes git pull
in a Terminal and I want to assert that it results in Already up-to-date.
How can I accomplish this? What is the best approach to take?
var assert = require('chai').assert;
var cmd = require('node-cmd');
describe('DEAN-Management', function () {
describe('Update source', function () {
it('check for updates', function () {
cmd.run('git pull');
assert.??;
});
});
});