Skip to content

Commit db1facd

Browse files
committed
Fixed minor code formatting issue
1 parent e1444ea commit db1facd

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

test/lib/util/task-timers.spec.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ import {
1515

1616
// tslint:disable:no-unused-expression
1717

18-
describe('UniqueTaskId class', function () {
18+
describe('UniqueTaskId class', function() {
1919

20-
it('should get a string taskId', function () {
20+
it('should get a string taskId', function() {
2121
const taskId: string = UniqueTaskId.getTaskId();
2222
expect(taskId).to.be.a('string');
2323
});
2424

25-
it("task id's should be different each call", function () {
25+
it('task id\'s should be different each call', function() {
2626
const taskId1: string = UniqueTaskId.getTaskId();
2727
const taskId2: string = UniqueTaskId.getTaskId();
2828

@@ -31,19 +31,19 @@ describe('UniqueTaskId class', function () {
3131

3232
});
3333

34-
describe('TaskTimerManager class', function () {
34+
describe('TaskTimerManager class', function() {
3535
const TEST_DELAY = 200;
3636

37-
before(function () {
37+
before(function() {
3838
logger.reset(); // Don't assume anything
3939
logger.muteLogger = true;
4040
});
4141

42-
after(function () {
42+
after(function() {
4343
logger.reset();
4444
});
4545

46-
it('start a timer', function () {
46+
it('start a timer', function() {
4747
const taskId: string = defaultTimers.startTimer('Test Timer');
4848
expect(taskId).to.be.a('string');
4949

@@ -54,12 +54,12 @@ describe('TaskTimerManager class', function () {
5454
expect(taskData!.start).to.be.greaterThan(0);
5555
});
5656

57-
it('start, wait (~' + TEST_DELAY + 'ms), and stop a timer', function (done) {
57+
it('start, wait (~' + TEST_DELAY + 'ms), and stop a timer', function(done) {
5858
let tReport: TaskTimerReport = defaultTimers.timerReport();
5959
const currentCount: number = tReport.taskCount;
6060

6161
const taskId: string = defaultTimers.startTimer('Test Timer');
62-
setTimeout(function () {
62+
setTimeout(function() {
6363
const tStop = defaultTimers.stopTimer(taskId);
6464
expect(tStop).to.be.at.least(TEST_DELAY);
6565

@@ -69,36 +69,36 @@ describe('TaskTimerManager class', function () {
6969
}, TEST_DELAY);
7070
});
7171

72-
it('stopTimer should return a negative result for an unknown taskId', function () {
72+
it('stopTimer should return a negative result for an unknown taskId', function() {
7373
defaultTimers.startTimer('Test Timer');
7474
const tStop: number = defaultTimers.stopTimer('NO WAY');
7575
expect(tStop).to.be.lessThan(0);
7676
});
7777

78-
it('timerStatus should return an undefined result for an unknown taskId', function () {
78+
it('timerStatus should return an undefined result for an unknown taskId', function() {
7979
defaultTimers.startTimer('Test Timer');
8080
const tStatus: TaskData | undefined = defaultTimers.timerStatus('NO WAY');
8181
expect(tStatus).to.be.undefined;
8282
});
8383

84-
it('getName() should return the name of the timers', function () {
84+
it('getName() should return the name of the timers', function() {
8585
expect(defaultTimers.getName()).to.equal(DEFAULT_TASK_TIMER_MANAGER_NAME);
8686
});
8787

88-
it('toString() should return a string', function () {
88+
it('toString() should return a string', function() {
8989
expect(defaultTimers.toString()).to.be.a('string');
9090
});
9191
});
9292

93-
describe('TaskTimer class', function () {
93+
describe('TaskTimer class', function() {
9494

95-
it('should throw TypeError during construction', function () {
96-
expect(function () {
95+
it('should throw TypeError during construction', function() {
96+
expect(function() {
9797
// @ts-ignore
9898
new TaskTimer(undefined, 'Hello');
9999
}).to.throw(TypeError);
100100

101-
expect(function () {
101+
expect(function() {
102102
// @ts-ignore
103103
new TaskTimer("This doesn't matter", undefined);
104104
}).to.throw(TypeError);

0 commit comments

Comments
 (0)