Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

chore(test-bed): Add fromInjector constructor to TestBed. #1271

Merged
merged 1 commit into from
Jul 29, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/mock/test_bed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class TestBed {

TestBed(this.injector, this.directiveInjector, this.rootScope, this.compiler, this._parser, this.expando);

TestBed.fromInjector(Injector i) :
this(i, i.get(DirectiveInjector), i.get(RootScope), i.get(Compiler),
i.get(Parser), i.get(Expando));


/**
* Use to compile HTML and activate its directives.
Expand Down