File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -462,23 +462,14 @@ The examples use the [Jasmine](http://jasmine.github.io/) testing framework.
462
462
463
463
**Controller Test:**
464
464
```js
465
- describe('component: heroDetail ', function() {
465
+ describe('HeroDetailController ', function() {
466
466
var $componentController;
467
467
468
468
beforeEach(module('heroApp'));
469
469
beforeEach(inject(function(_$componentController_) {
470
470
$componentController = _$componentController_;
471
471
}));
472
472
473
- it('should expose a `hero` object', function() {
474
- // Here we are passing actual bindings to the component
475
- var bindings = {hero: {name: 'Wolverine'}};
476
- var ctrl = $componentController('heroDetail', null, bindings);
477
-
478
- expect(ctrl.hero).toBeDefined();
479
- expect(ctrl.hero.name).toBe('Wolverine');
480
- });
481
-
482
473
it('should call the `onDelete` binding, when deleting the hero', function() {
483
474
var onDeleteSpy = jasmine.createSpy('onDelete');
484
475
var bindings = {hero: {}, onDelete: onDeleteSpy};
You can’t perform that action at this time.
0 commit comments