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