O'Reilly logo

Angular Test-Driven Development - Second Edition by Md. Ziaul Haq

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required