Skip to content

Commit 50ffe81

Browse files
committed
remove unnecessary done() and use arrow function
1 parent a1a46b5 commit 50ffe81

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed
Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '../../src/index';
22
import {BottomBarRegistryManager} from '../../src/components/bottom-bar';
33

4-
describe('BottomBarRegistryManager', function () {
4+
describe('BottomBarRegistryManager', () => {
55
const myComponentName = 'MyComponent';
66
const iconDto = {
77
ariaLabel: 'aria label',
@@ -15,39 +15,36 @@ describe('BottomBarRegistryManager', function () {
1515

1616
let bottomBarRegistryManager;
1717

18-
beforeEach(function () {
18+
beforeEach(() => {
1919
bottomBarRegistryManager = new BottomBarRegistryManager();
2020
});
2121

22-
afterEach(function () {
22+
afterEach(() => {
2323
bottomBarRegistryManager = null;
2424
});
2525

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', () => {
2828
bottomBarRegistryManager.register(myComponentName, iconDto);
2929
bottomBarRegistryManager.registry.size.should.equal(1);
30-
done();
3130
});
3231
});
3332

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', () => {
3635
bottomBarRegistryManager.register(myComponentName, iconDto);
3736
bottomBarRegistryManager.registry.size.should.equal(1);
3837
bottomBarRegistryManager.unregister(myComponentName);
3938
bottomBarRegistryManager.registry.size.should.equal(0);
40-
done();
4139
});
4240
});
4341

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', () => {
4644
bottomBarRegistryManager.register(myComponentName, iconDto);
4745
bottomBarRegistryManager.registry.size.should.equal(1);
4846
bottomBarRegistryManager.clear();
4947
bottomBarRegistryManager.registry.size.should.equal(0);
50-
done();
5148
});
5249
});
5350
});

0 commit comments

Comments
 (0)