Skip to content

Commit

Permalink
Update Todo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dongryphon committed May 4, 2016
1 parent f760a5f commit 5aad662
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Workspace/apps/admin-dashboard/test/unit/model/Todo.js
@@ -1,10 +1,10 @@
describe('Todo Tests', function() {

var taskName = 'Do this later';

describe('with a not completed todo item', function() {
beforeEach( function() {
this.startTime = new Date().getTime();

// Create a not completed item
this.todo = new Admin.model.Todo({
id: 99,
Expand Down Expand Up @@ -131,13 +131,14 @@ describe('Todo Tests', function() {
describe('with a completed todo item', function() {
beforeEach( function() {
this.startTime = new Date().getTime();
this.data = {

// Create a completed item
this.todo = new Admin.model.Todo({
id: 99,
task: 'Do this now',
done: true,
completedDate: new Date()
};
this.todo = new Admin.model.Todo(this.data);
});
});

describe('set fields by name', function() {
Expand Down

0 comments on commit 5aad662

Please sign in to comment.