test('test for adding new todo', function(t) {
t.deepEqual(logic.addTodo([], 'new todo'),[{id: 1,description: 'new todo', done: false}],"new todo has been added!");
t.end();
});
Define variables is best practice to make sure people who read the code kows what these arguments refer to
var actual=logic.addTodo([], 'new todo';
var expected= [{id: 1,description: 'new todo', done: false}];
Define variables is best practice to make sure people who read the code kows what these arguments refer to