@@ -159,6 +159,7 @@ describe('resizable', () => {
159159 fixture . detectChanges ( ) ;
160160 expect ( testComponent . height ) . toBeLessThanOrEqual ( 200 ) ;
161161 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
162+ expect ( testComponent . resizeDirection ) . toEqual ( 'top' ) ;
162163 } ) ) ;
163164
164165 /**
@@ -184,6 +185,7 @@ describe('resizable', () => {
184185 fixture . detectChanges ( ) ;
185186 expect ( testComponent . height ) . toBeLessThanOrEqual ( 200 ) ;
186187 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
188+ expect ( testComponent . resizeDirection ) . toEqual ( 'top' ) ;
187189 } ) ) ;
188190
189191 /**
@@ -209,6 +211,7 @@ describe('resizable', () => {
209211 fixture . detectChanges ( ) ;
210212 expect ( testComponent . height ) . toBeLessThanOrEqual ( 200 ) ;
211213 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
214+ expect ( testComponent . resizeDirection ) . toEqual ( 'bottom' ) ;
212215 } ) ) ;
213216
214217 /**
@@ -234,6 +237,7 @@ describe('resizable', () => {
234237 fixture . detectChanges ( ) ;
235238 expect ( testComponent . width ) . toBeLessThanOrEqual ( 400 ) ;
236239 expect ( testComponent . width ) . toBeGreaterThanOrEqual ( 300 ) ;
240+ expect ( testComponent . resizeDirection ) . toEqual ( 'left' ) ;
237241 } ) ) ;
238242
239243 /**
@@ -259,6 +263,7 @@ describe('resizable', () => {
259263 fixture . detectChanges ( ) ;
260264 expect ( testComponent . width ) . toBeLessThanOrEqual ( 400 ) ;
261265 expect ( testComponent . width ) . toBeGreaterThanOrEqual ( 300 ) ;
266+ expect ( testComponent . resizeDirection ) . toEqual ( 'right' ) ;
262267 } ) ) ;
263268
264269 /**
@@ -286,6 +291,7 @@ describe('resizable', () => {
286291 expect ( testComponent . width ) . toBeGreaterThanOrEqual ( 300 ) ;
287292 expect ( testComponent . height ) . toBeLessThanOrEqual ( 210 ) ;
288293 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
294+ expect ( testComponent . resizeDirection ) . toEqual ( 'topRight' ) ;
289295 } ) ) ;
290296
291297 /**
@@ -313,6 +319,7 @@ describe('resizable', () => {
313319 expect ( testComponent . width ) . toBeGreaterThanOrEqual ( 300 ) ;
314320 expect ( testComponent . height ) . toBeLessThanOrEqual ( 200 ) ;
315321 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
322+ expect ( testComponent . resizeDirection ) . toEqual ( 'topLeft' ) ;
316323 } ) ) ;
317324
318325 /**
@@ -340,6 +347,7 @@ describe('resizable', () => {
340347 expect ( testComponent . width ) . toBeGreaterThanOrEqual ( 300 ) ;
341348 expect ( testComponent . height ) . toBeLessThanOrEqual ( 190 ) ;
342349 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
350+ expect ( testComponent . resizeDirection ) . toEqual ( 'bottomRight' ) ;
343351 } ) ) ;
344352
345353 /**
@@ -367,6 +375,7 @@ describe('resizable', () => {
367375 expect ( testComponent . width ) . toBeGreaterThanOrEqual ( 300 ) ;
368376 expect ( testComponent . height ) . toBeLessThanOrEqual ( 200 ) ;
369377 expect ( testComponent . height ) . toBeGreaterThanOrEqual ( 100 ) ;
378+ expect ( testComponent . resizeDirection ) . toEqual ( 'bottomLeft' ) ;
370379 } ) ) ;
371380 } ) ;
372381
0 commit comments