This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('AppView', function() { | |
var todos = requirejs('collections/todos'); | |
var AppView = requirejs('views/appView'); | |
var Common = requirejs('common'); | |
var $ = requirejs('jquery'); | |
var appView; | |
var spyFetch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('TodoView', function() { | |
var Todo = requirejs('models/todo'); | |
var TodoView = requirejs('views/todoView'); | |
var Common = requirejs('common'); | |
var $ = requirejs('jquery'); | |
var todo, todoView; | |
beforeEach(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todos', function() { | |
var Todo = requirejs('models/todo'); | |
var todos = requirejs('collections/todos'); | |
beforeEach(function() { | |
todos.reset(); | |
}); | |
it('filtering completed', function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo', function() { | |
var Todo = requirejs('models/todo'); | |
var todo; | |
beforeEach(function() { | |
todo = new Todo(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TodoPage() { | |
'use strict'; | |
var idNew = '#new-todo'; | |
var title = '#header > h1'; | |
var children = '#todo-list li'; | |
var nthChild = function(n) { | |
return children+':nth-child('+n+')'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TodoPage() { | |
'use strict'; | |
var ENTER_KEY = 13; | |
var idNew = '#new-todo'; | |
var title = 'title'; | |
var titleList = '#header > h1'; | |
var children = '#todo-list li'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TodoPage() { | |
'use strict'; | |
var idNew = '#new-todo'; | |
var title = 'title'; | |
var titleList = '#header > h1'; | |
var children = '#todo-list li'; | |
var childrenVisible = '#todo-list li:not(.hidden)'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TodoPage() { | |
'use strict'; | |
var idNew = '#new-todo'; | |
var title = 'title'; | |
var titleList = '#header > h1'; | |
var children = '#todo-list li'; | |
var childrenVisible = '#todo-list li:not(.hidden)'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo add scenario', function() { | |
before(function () { | |
todo.before(); | |
}); | |
it('titre de la page', function() { | |
todo.test(function() { | |
expect("TodoListWithBB").to.matchTitle; | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Todo add scenario', function() { | |
before(function(done) { | |
todo.before(done); | |
}); | |
it('titre de la page', function() { | |
expect(todo.title()).to.equal('TodoListWithBB'); | |
}); | |
it('titre de la todo list', function() { |
NewerOlder