Searching the TDD way

This walk-through will show us how to build a simple search application. It has two components: the first discusses a search query component, and the second uses routes to display search result details.

Walk-through of the search query

The application being built is a search application. The first step is to set up the search area with search results. Imagine that I am performing a search. In this case, the following actions will occur:

  • A search query is typed in
  • The results are displayed at the bottom of the search box

This piece of the application is very similar to the test, layout, and approach we have seen in Chapter 6, The First Step. The application will need to use an input, respond to a click, and confirm the resulting ...

Get Angular Test-Driven Development - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.