@@ -214,12 +214,12 @@ describe('MatSnackBar', () => {
214214
215215 viewContainerFixture . detectChanges ( ) ;
216216 expect ( snackBarRef . containerInstance . _animationState )
217- . toBe ( 'visible-bottom ' , `Expected the animation state would be 'visible-bottom '.` ) ;
217+ . toBe ( 'visible' , `Expected the animation state would be 'visible'.` ) ;
218218 snackBarRef . dismiss ( ) ;
219219
220220 viewContainerFixture . detectChanges ( ) ;
221221 expect ( snackBarRef . containerInstance . _animationState )
222- . toBe ( 'hidden-bottom ' , `Expected the animation state would be 'hidden-bottom '.` ) ;
222+ . toBe ( 'hidden' , `Expected the animation state would be 'hidden'.` ) ;
223223 } ) ;
224224
225225 it ( 'should set the animation state to complete on exit' , ( ) => {
@@ -229,7 +229,7 @@ describe('MatSnackBar', () => {
229229
230230 viewContainerFixture . detectChanges ( ) ;
231231 expect ( snackBarRef . containerInstance . _animationState )
232- . toBe ( 'hidden-bottom ' , `Expected the animation state would be 'hidden-bottom '.` ) ;
232+ . toBe ( 'hidden' , `Expected the animation state would be 'hidden'.` ) ;
233233 } ) ;
234234
235235 it ( `should set the old snack bar animation state to complete and the new snack bar animation
@@ -240,7 +240,7 @@ describe('MatSnackBar', () => {
240240
241241 viewContainerFixture . detectChanges ( ) ;
242242 expect ( snackBarRef . containerInstance . _animationState )
243- . toBe ( 'visible-bottom ' , `Expected the animation state would be 'visible-bottom '.` ) ;
243+ . toBe ( 'visible' , `Expected the animation state would be 'visible'.` ) ;
244244
245245 let config2 = { viewContainerRef : testViewContainerRef } ;
246246 let snackBarRef2 = snackBar . open ( simpleMessage , undefined , config2 ) ;
@@ -251,9 +251,9 @@ describe('MatSnackBar', () => {
251251
252252 expect ( dismissCompleteSpy ) . toHaveBeenCalled ( ) ;
253253 expect ( snackBarRef . containerInstance . _animationState )
254- . toBe ( 'hidden-bottom ' , `Expected the animation state would be 'hidden-bottom '.` ) ;
254+ . toBe ( 'hidden' , `Expected the animation state would be 'hidden'.` ) ;
255255 expect ( snackBarRef2 . containerInstance . _animationState )
256- . toBe ( 'visible-bottom ' , `Expected the animation state would be 'visible-bottom '.` ) ;
256+ . toBe ( 'visible' , `Expected the animation state would be 'visible'.` ) ;
257257 } ) ) ;
258258
259259 it ( 'should open a new snackbar after dismissing a previous snackbar' , fakeAsync ( ( ) => {
@@ -273,7 +273,7 @@ describe('MatSnackBar', () => {
273273 // Wait for the snackbar open animation to finish.
274274 flush ( ) ;
275275 expect ( snackBarRef . containerInstance . _animationState )
276- . toBe ( 'visible-bottom ' , `Expected the animation state would be 'visible-bottom '.` ) ;
276+ . toBe ( 'visible' , `Expected the animation state would be 'visible'.` ) ;
277277 } ) ) ;
278278
279279 it ( 'should remove past snackbars when opening new snackbars' , fakeAsync ( ( ) => {
@@ -452,31 +452,6 @@ describe('MatSnackBar', () => {
452452 . toContain ( 'custom-class' , 'Expected class applied through the defaults to be applied.' ) ;
453453 } ) ) ;
454454
455- it ( 'should position the snack bar correctly if no default position is defined' , fakeAsync ( ( ) => {
456- overlayContainer . ngOnDestroy ( ) ;
457- viewContainerFixture . destroy ( ) ;
458-
459- TestBed
460- . resetTestingModule ( )
461- . overrideProvider ( MAT_SNACK_BAR_DEFAULT_OPTIONS , {
462- deps : [ ] ,
463- useFactory : ( ) => ( { politeness : 'polite' } )
464- } )
465- . configureTestingModule ( { imports : [ MatSnackBarModule , NoopAnimationsModule ] } )
466- . compileComponents ( ) ;
467-
468- inject ( [ MatSnackBar , OverlayContainer ] , ( sb : MatSnackBar , oc : OverlayContainer ) => {
469- snackBar = sb ;
470- overlayContainer = oc ;
471- overlayContainerElement = oc . getContainerElement ( ) ;
472- } ) ( ) ;
473-
474- const snackBarRef = snackBar . open ( simpleMessage ) ;
475- flush ( ) ;
476-
477- expect ( snackBarRef . containerInstance . _animationState ) . toBe ( 'visible-bottom' ) ;
478- } ) ) ;
479-
480455 describe ( 'with custom component' , ( ) => {
481456 it ( 'should open a custom component' , ( ) => {
482457 const snackBarRef = snackBar . openFromComponent ( BurritosNotification ) ;
0 commit comments