All Questions
Tagged with angular.js jasmine
4 questions
1
vote
2
answers
89
views
Unit tests for a single JavaScript function
Here is the question: What is the better way to unit test this specific function? Should all the test items be included in one test or is it better to break up the tests so each test is testing for ...
2
votes
0
answers
156
views
Jasmine Unit tests for simple Angular backend interaction
I have a simple Angular application that lists some object requests from a backend, allows the users to click once to edit the item, and then click again to update the object in the backend.
Here's a ...
1
vote
1
answer
920
views
Angular directive test
I'm learning how to write tests in Angular (these are my first tests in general). There are a lot of tutorials out there but each one of them has a different approach. I'm a bit confused if I'm doing ...
1
vote
1
answer
5k
views
Angular filter to format temperature
This a basic filter I created with Angular that does temperature conversion. I'd like to get thoughts on how to improve this code from both an Angular and general JS perspective.
The filter should ...