docs: update examples for tree-shakeable providers (#22961)

PR Close #22961
This commit is contained in:
Alex Rickabaugh
2018-03-23 08:36:48 -07:00
parent ed53c5ccdd
commit e1ea7ed019
25 changed files with 154 additions and 13 deletions

View File

@ -178,6 +178,11 @@ describe('Dependency Injection Tests', function () {
expect(heroes.count()).toBeGreaterThan(0);
});
it('authorized user should have multiple authorized heroes with tree-shakeable HeroesService', function () {
let heroes = element.all(by.css('#tspAuthorized app-hero-list div'));
expect(heroes.count()).toBeGreaterThan(0);
});
it('authorized user should have secret heroes', function () {
let heroes = element.all(by.css('#authorized app-hero-list div'));
expect(heroes.count()).toBeGreaterThan(0);