Skip to content

learn-co-curriculum/angular-testing-custom-filters-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing filters with Jasmine/Karma

Objectives

  • Write unit tests for our custom filters

Instructions

In this repo we've got two filters.

The first filter is FavoriteFood - it will filter an array of objects depending on the favoriteFood property in the object. Test that this filter is filtering a mocked example list of people correctly (create a small array of fake people objects with a name and favoriteFood).

The second is a filter to remove all the vowels in a string. Test that this removes every vowel in any string given to the filter.

Make sure you run all the specs once you've written them and that they pass!

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •