todo
Version:
Todos in the CLI like what.
20 lines (18 loc) • 422 B
JavaScript
describe('todo check', function() {
it('completes a todo item', function(done) {
cli()
.exec('todo add have less fun')
.exec('todo check 1')
.run('todo ls')
.stdout('')
.code(0)
.end(done);
});
it('errors when the supplied id is invalid', function(done) {
cli()
.run('todo check 3')
.stderr('todo: Cannot find a todo item with id "3"')
.code(1)
.end(done);
});
});