fix(testing): Add platform directives to the shim that keeps setBaseTestProviders running (#10154)

Due to daa9da4047,
tests using the setBaseTestProviders stopped working with ambient directives such as
`ngIf`. Add them back in to keep the shim working.
This commit is contained in:
Julie Ralph
2016-07-19 08:59:14 -07:00
committed by GitHub
parent 51e661eb74
commit 979946c062
2 changed files with 20 additions and 8 deletions

View File

@ -39,11 +39,7 @@ class MockChildComp {
class ParentComp {
}
@Component({
selector: 'my-if-comp',
template: `MyIf(<span *ngIf="showMore">More</span>)`,
directives: [NgIf]
})
@Component({selector: 'my-if-comp', template: `MyIf(<span *ngIf="showMore">More</span>)`})
@Injectable()
class MyIfComp {
showMore: boolean = false;