We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37aeba1 commit b1289b5Copy full SHA for b1289b5
src/lib/dialog/dialog.spec.ts
@@ -140,12 +140,18 @@ describe('MdDialog', () => {
140
dialog.afterOpen().subscribe(r => {
141
ref = r;
142
});
143
- expect(dialog.open(PizzaMsg)).toBe(ref);
+ expect(dialog.open(PizzaMsg, {
144
+ viewContainerRef: testViewContainerRef
145
+ })).toBe(ref);
146
147
148
it('should notify the observers if all open dialogs have finished closing', () => {
- const ref1 = dialog.open(PizzaMsg);
- const ref2 = dialog.open(ContentElementDialog);
149
+ const ref1 = dialog.open(PizzaMsg, {
150
151
+ });
152
+ const ref2 = dialog.open(ContentElementDialog, {
153
154
155
let allClosed = false;
156
157
dialog.afterAllClosed().subscribe(_ => {
0 commit comments