What are the basic steps to unit test an AngularJS filter? Technology Community › Category: AngularJS › What are the basic steps to unit test an AngularJS filter? 0 Vote Up Vote Down VietMX Staff asked 4 years ago Inject the module that contains the filter. Provide any mocks that the filter relies on. Get an instance of the filter using $filter('yourFilterName'). Assert your expectations.