@@ -11,7 +11,7 @@ import {
1111 OverlayContainer ,
1212 OverlayModule ,
1313 OverlayRef ,
14- OverlayState ,
14+ OverlayConfig ,
1515 PositionStrategy ,
1616 ScrollStrategy ,
1717} from './index' ;
@@ -133,7 +133,7 @@ describe('Overlay', () => {
133133 } ) ;
134134
135135 it ( 'should set the direction' , ( ) => {
136- const state = new OverlayState ( { direction : 'rtl' } ) ;
136+ const state = new OverlayConfig ( { direction : 'rtl' } ) ;
137137
138138 overlay . create ( state ) . attach ( componentPortal ) ;
139139
@@ -152,7 +152,7 @@ describe('Overlay', () => {
152152 } ) ;
153153
154154 it ( 'should emit the attachment event after everything is added to the DOM' , ( ) => {
155- let state = new OverlayState ( { hasBackdrop : true } ) ;
155+ let state = new OverlayConfig ( { hasBackdrop : true } ) ;
156156 let overlayRef = overlay . create ( state ) ;
157157
158158 overlayRef . attachments ( ) . subscribe ( ( ) => {
@@ -220,10 +220,10 @@ describe('Overlay', () => {
220220 } ) ;
221221
222222 describe ( 'positioning' , ( ) => {
223- let state : OverlayState ;
223+ let state : OverlayConfig ;
224224
225225 beforeEach ( ( ) => {
226- state = new OverlayState ( ) ;
226+ state = new OverlayConfig ( ) ;
227227 } ) ;
228228
229229 it ( 'should apply the positioning strategy' , ( ) => {
@@ -236,10 +236,10 @@ describe('Overlay', () => {
236236 } ) ;
237237
238238 describe ( 'size' , ( ) => {
239- let state : OverlayState ;
239+ let state : OverlayConfig ;
240240
241241 beforeEach ( ( ) => {
242- state = new OverlayState ( ) ;
242+ state = new OverlayConfig ( ) ;
243243 } ) ;
244244
245245 it ( 'should apply the width set in the config' , ( ) => {
@@ -320,10 +320,10 @@ describe('Overlay', () => {
320320 } ) ;
321321
322322 describe ( 'backdrop' , ( ) => {
323- let config : OverlayState ;
323+ let config : OverlayConfig ;
324324
325325 beforeEach ( ( ) => {
326- config = new OverlayState ( ) ;
326+ config = new OverlayConfig ( ) ;
327327 config . hasBackdrop = true ;
328328 } ) ;
329329
@@ -411,7 +411,7 @@ describe('Overlay', () => {
411411
412412 describe ( 'panelClass' , ( ) => {
413413 it ( 'should apply a custom overlay pane class' , ( ) => {
414- const config = new OverlayState ( { panelClass : 'custom-panel-class' } ) ;
414+ const config = new OverlayConfig ( { panelClass : 'custom-panel-class' } ) ;
415415
416416 overlay . create ( config ) . attach ( componentPortal ) ;
417417 viewContainerFixture . detectChanges ( ) ;
@@ -421,7 +421,7 @@ describe('Overlay', () => {
421421 } ) ;
422422
423423 it ( 'should be able to apply multiple classes' , ( ) => {
424- const config = new OverlayState ( { panelClass : [ 'custom-class-one' , 'custom-class-two' ] } ) ;
424+ const config = new OverlayConfig ( { panelClass : [ 'custom-class-one' , 'custom-class-two' ] } ) ;
425425
426426 overlay . create ( config ) . attach ( componentPortal ) ;
427427 viewContainerFixture . detectChanges ( ) ;
@@ -435,12 +435,12 @@ describe('Overlay', () => {
435435
436436 describe ( 'scroll strategy' , ( ) => {
437437 let fakeScrollStrategy : FakeScrollStrategy ;
438- let config : OverlayState ;
438+ let config : OverlayConfig ;
439439 let overlayRef : OverlayRef ;
440440
441441 beforeEach ( ( ) => {
442442 fakeScrollStrategy = new FakeScrollStrategy ( ) ;
443- config = new OverlayState ( { scrollStrategy : fakeScrollStrategy } ) ;
443+ config = new OverlayConfig ( { scrollStrategy : fakeScrollStrategy } ) ;
444444 overlayRef = overlay . create ( config ) ;
445445 } ) ;
446446
0 commit comments