1
- import { Alignment } from '../../../src/libs/common/alignment.enum'
2
- import { ContentBox } from '../../../src/libs/engine/layout_engine/builder/groups/content_box/content_box'
3
- import { Direction } from '../../../src/libs/common/distribution.enum'
1
+ import { Alignment } from '../../../src/libs/common/alignment.enum' ;
2
+ import { ContentBox } from '../../../src/libs/engine/layout_engine/builder/groups/content_box/content_box' ;
3
+ import { Direction } from '../../../src/libs/common/distribution.enum' ;
4
4
5
5
describe ( 'Content Box' , ( ) => {
6
6
describe ( 'Row - Top Label' , function ( ) {
@@ -13,22 +13,22 @@ describe('Content Box', () => {
13
13
5 , ( ) => {
14
14
} , ( ) => {
15
15
} ,
16
- )
16
+ ) ;
17
17
18
18
it ( 'Should initialize and update main length content box reference' , async ( ) => {
19
- contentBox . setWidth ( 100 )
19
+ contentBox . setWidth ( 100 ) ;
20
20
21
- expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 5 )
22
- expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 105 )
23
- } )
21
+ expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 5 ) ;
22
+ expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 105 ) ;
23
+ } ) ;
24
24
25
25
it ( 'Should initialize and update cross length content box reference' , async ( ) => {
26
- contentBox . setHeight ( 100 )
26
+ contentBox . setHeight ( 100 ) ;
27
27
28
- expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 25 )
29
- expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 125 )
30
- } )
31
- } )
28
+ expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 25 ) ;
29
+ expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 125 ) ;
30
+ } ) ;
31
+ } ) ;
32
32
33
33
describe ( 'Row - Lateral Label' , function ( ) {
34
34
const contentBox = new ContentBox (
@@ -40,22 +40,22 @@ describe('Content Box', () => {
40
40
5 , ( ) => {
41
41
} , ( ) => {
42
42
} ,
43
- )
43
+ ) ;
44
44
45
45
it ( 'Should initialize and update main length content box reference' , async ( ) => {
46
- contentBox . setWidth ( 100 )
46
+ contentBox . setWidth ( 100 ) ;
47
47
48
- expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 45 )
49
- expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 145 )
50
- } )
48
+ expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 45 ) ;
49
+ expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 145 ) ;
50
+ } ) ;
51
51
52
52
it ( 'Should initialize and update cross length content box reference' , async ( ) => {
53
- contentBox . setHeight ( 100 )
53
+ contentBox . setHeight ( 100 ) ;
54
54
55
- expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 5 )
56
- expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 105 )
57
- } )
58
- } )
55
+ expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 5 ) ;
56
+ expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 105 ) ;
57
+ } ) ;
58
+ } ) ;
59
59
60
60
describe ( 'Col - Top Label' , function ( ) {
61
61
const contentBox = new ContentBox (
@@ -67,22 +67,22 @@ describe('Content Box', () => {
67
67
5 , ( ) => {
68
68
} , ( ) => {
69
69
} ,
70
- )
70
+ ) ;
71
71
72
72
it ( 'Should initialize and update main length content box reference' , async ( ) => {
73
- contentBox . setWidth ( 100 )
73
+ contentBox . setWidth ( 100 ) ;
74
74
75
- expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 5 )
76
- expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 105 )
77
- } )
75
+ expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 5 ) ;
76
+ expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 105 ) ;
77
+ } ) ;
78
78
79
79
it ( 'Should initialize and update cross length content box reference' , async ( ) => {
80
- contentBox . setHeight ( 100 )
80
+ contentBox . setHeight ( 100 ) ;
81
81
82
- expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 25 )
83
- expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 125 )
84
- } )
85
- } )
82
+ expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 25 ) ;
83
+ expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 125 ) ;
84
+ } ) ;
85
+ } ) ;
86
86
87
87
describe ( 'Col - Lateral Label' , function ( ) {
88
88
const contentBox = new ContentBox (
@@ -96,20 +96,20 @@ describe('Content Box', () => {
96
96
} ,
97
97
( ) => {
98
98
} ,
99
- )
99
+ ) ;
100
100
101
101
it ( 'Should initialize and update main length content box reference' , async ( ) => {
102
- contentBox . setWidth ( 100 )
102
+ contentBox . setWidth ( 100 ) ;
103
103
104
- expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 45 )
105
- expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 145 )
106
- } )
104
+ expect ( contentBox . getDimension ( ) . getLeftBoundary ( ) ) . toBe ( 45 ) ;
105
+ expect ( contentBox . getDimension ( ) . getRightBoundary ( ) ) . toBe ( 145 ) ;
106
+ } ) ;
107
107
108
108
it ( 'Should initialize and update cross length content box reference' , async ( ) => {
109
- contentBox . setHeight ( 100 )
109
+ contentBox . setHeight ( 100 ) ;
110
110
111
- expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 5 )
112
- expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 105 )
113
- } )
114
- } )
115
- } )
111
+ expect ( contentBox . getDimension ( ) . getTopBoundary ( ) ) . toBe ( 5 ) ;
112
+ expect ( contentBox . getDimension ( ) . getBottomBoundary ( ) ) . toBe ( 105 ) ;
113
+ } ) ;
114
+ } ) ;
115
+ } ) ;
0 commit comments