Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e90200b

Browse files
musclorgkalpak
authored andcommitted
docs(guide/component): remove redundant unit test
Fixes #15968 Closes #15974
1 parent 7f36ba7 commit e90200b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docs/content/guide/component.ngdoc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -462,23 +462,14 @@ The examples use the [Jasmine](http://jasmine.github.io/) testing framework.
462462

463463
**Controller Test:**
464464
```js
465-
describe('component: heroDetail', function() {
465+
describe('HeroDetailController', function() {
466466
var $componentController;
467467

468468
beforeEach(module('heroApp'));
469469
beforeEach(inject(function(_$componentController_) {
470470
$componentController = _$componentController_;
471471
}));
472472

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-
482473
it('should call the `onDelete` binding, when deleting the hero', function() {
483474
var onDeleteSpy = jasmine.createSpy('onDelete');
484475
var bindings = {hero: {}, onDelete: onDeleteSpy};

0 commit comments

Comments
 (0)