1
1
import '../../src/index' ;
2
2
import { BottomBarRegistryManager } from '../../src/components/bottom-bar' ;
3
3
4
- describe ( 'BottomBarRegistryManager' , function ( ) {
4
+ describe ( 'BottomBarRegistryManager' , ( ) => {
5
5
const myComponentName = 'MyComponent' ;
6
6
const iconDto = {
7
7
ariaLabel : 'aria label' ,
@@ -15,39 +15,36 @@ describe('BottomBarRegistryManager', function () {
15
15
16
16
let bottomBarRegistryManager ;
17
17
18
- beforeEach ( function ( ) {
18
+ beforeEach ( ( ) => {
19
19
bottomBarRegistryManager = new BottomBarRegistryManager ( ) ;
20
20
} ) ;
21
21
22
- afterEach ( function ( ) {
22
+ afterEach ( ( ) => {
23
23
bottomBarRegistryManager = null ;
24
24
} ) ;
25
25
26
- describe ( 'register API' , function ( ) {
27
- it ( 'Should register a component to the manager' , function ( done ) {
26
+ describe ( 'register API' , ( ) => {
27
+ it ( 'Should register a component to the manager' , ( ) => {
28
28
bottomBarRegistryManager . register ( myComponentName , iconDto ) ;
29
29
bottomBarRegistryManager . registry . size . should . equal ( 1 ) ;
30
- done ( ) ;
31
30
} ) ;
32
31
} ) ;
33
32
34
- describe ( 'unregister API' , function ( ) {
35
- it ( 'Should unregister a component from the manager' , function ( done ) {
33
+ describe ( 'unregister API' , ( ) => {
34
+ it ( 'Should unregister a component from the manager' , ( ) => {
36
35
bottomBarRegistryManager . register ( myComponentName , iconDto ) ;
37
36
bottomBarRegistryManager . registry . size . should . equal ( 1 ) ;
38
37
bottomBarRegistryManager . unregister ( myComponentName ) ;
39
38
bottomBarRegistryManager . registry . size . should . equal ( 0 ) ;
40
- done ( ) ;
41
39
} ) ;
42
40
} ) ;
43
41
44
- describe ( 'clear API' , function ( ) {
45
- it ( 'Should clear the registry of the manager' , function ( done ) {
42
+ describe ( 'clear API' , ( ) => {
43
+ it ( 'Should clear the registry of the manager' , ( ) => {
46
44
bottomBarRegistryManager . register ( myComponentName , iconDto ) ;
47
45
bottomBarRegistryManager . registry . size . should . equal ( 1 ) ;
48
46
bottomBarRegistryManager . clear ( ) ;
49
47
bottomBarRegistryManager . registry . size . should . equal ( 0 ) ;
50
- done ( ) ;
51
48
} ) ;
52
49
} ) ;
53
50
} ) ;
0 commit comments