Skip to content

Commit b1289b5

Browse files
committed
added viewContainerRef to dialog open tests
1 parent 37aeba1 commit b1289b5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/lib/dialog/dialog.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,18 @@ describe('MdDialog', () => {
140140
dialog.afterOpen().subscribe(r => {
141141
ref = r;
142142
});
143-
expect(dialog.open(PizzaMsg)).toBe(ref);
143+
expect(dialog.open(PizzaMsg, {
144+
viewContainerRef: testViewContainerRef
145+
})).toBe(ref);
144146
});
145147

146148
it('should notify the observers if all open dialogs have finished closing', () => {
147-
const ref1 = dialog.open(PizzaMsg);
148-
const ref2 = dialog.open(ContentElementDialog);
149+
const ref1 = dialog.open(PizzaMsg, {
150+
viewContainerRef: testViewContainerRef
151+
});
152+
const ref2 = dialog.open(ContentElementDialog, {
153+
viewContainerRef: testViewContainerRef
154+
});
149155
let allClosed = false;
150156

151157
dialog.afterAllClosed().subscribe(_ => {

0 commit comments

Comments
 (0)