On Github homburg / slides-karma-unittest-2013
Testing framework
Jasmine (by default)
describe("My project", function () {
describe("my function", function () {
it("should do something", function () {
// ...
});
};
});Dependency injection
app.controller(function (myService) {
myService.call("Hey!");
});
app.filter(function (myService) {
return function (input) {
return myService.flob(input);
});
});