Skip to content

Testing

Roheem Olayemi edited this page Jan 30, 2020 · 5 revisions

Automatic Jasmine unit testing was carried out

We were required to add some tests to already written ones. New tests checked the following cases:

  •  should show entries on start-up
       the ‘todo’ array should be empty when the application starts
    
  • should show active entries’
       the completed tasks which are set to false i.e. (completed = false)
    
  • should show completed entries'
       the completed tasks which are set to true i.e. (completed = true)
    
  • should highlight "Active" filter when switching to active view
       sets 'active' when an entry is added into the input
    
  • should highlight "All" filter by default'
       sets 'all' as the default state
    
  • should toggle all todos to completed'
       updates all tasks as completed 
    
  • should update the view'
       updates the status as completed 
    
  • should add a new todo to the model'
       adds a new entry to the list
    
  • should remove an entry from the model'
       removes todo entry
    

Clone this wiki locally