bexodim / ProgressArc

Circular progress bar using CoffeeScript, AngularJS and D3JS
0 stars 0 forks source link

unit test for the directive #4

Open diwu1989 opened 10 years ago

diwu1989 commented 10 years ago

Please read the unit testing developer guide at https://docs.angularjs.org/guide/unit-testing and add some unit tests to check that the arcs are drawn correctly.

diwu1989 commented 10 years ago

Animations might trip you up during the unit testing, one way around it is to make the animation duration a variable and shorten the time to 0 inside unit tests to get to the end state immediately.