var test = require('tape');
var toDo = require('../libs/to-do-handler');

test('shouldGetToDoListForUsername', function(t) {
  t.plan(2);

  toDo.getToDoListForUsername('bhish',
    function(result) {
      var parsedToDo = result;
      var expected = [
        ['Make to-do app', 'A to-do application should be made for doing fun to-do type doing stuff. And it should be done before xmas!', '20151224'],
        ['Admire to-do app', 'And then he read his to-dos, and, behold, it was very good.', '20151225']
      ];
      t.deepEqual(parsedToDo, expected);
    });

  toDo.getToDoListForUsername('bart',
    function(result) {
      var parsedToDo = result;
      var expected = [
        ['FLAnnoy Homer', 'Annoy him really badly', '20160101'],
        ['Laugh at Milhouse', 'Because, why not?', '20160101']
      ];
      t.deepEqual(parsedToDo, expected);
    });

});
var test = require('tape');
var toDo = require('../libs/to-do-handler');

test('shouldGetToDoListForUsername', function(t) {
  t.plan(2);

  toDo.getToDoListForUsername('bhish',
    function(result) {
      var parsedToDo = result;
      var expected = [
        ['Make to-do app', 'A to-do application should be made for doing fun to-do type doing stuff. And it should be done before xmas!', '20151224'],
        ['Admire to-do app', 'And then he read his to-dos, and, behold, it was very good.', '20151225']
      ];
      t.deepEqual(parsedToDo, expected);
    });

  toDo.getToDoListForUsername('bart',
    function(result) {
      var parsedToDo = result;
      var expected = [
        ['Annoy Homer', 'Annoy him really badly', '20160101'],
        ['Laugh at Milhouse', 'Because, why not?', '20160101']
      ];
      t.deepEqual(parsedToDo, expected);
    });

});
Revert "Breaking change to test Travis"
Revert "Breaking change to test Travis"

This reverts commit 795475b070ef56ce7d4ba50bce4f84a9b664b67b.
