Skip to content

Commit e46f208

Browse files
committed
refactor: fix lint
1 parent 30bfdcd commit e46f208

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

packages/utils/src/lib/profiler/profiler.int.test.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ describe('NodeJS Profiler Integration', () => {
322322
});
323323

324324
it('should initialize with sink opened when enabled', () => {
325-
expect(mockSink.isClosed()).toBe(false);
326-
expect(nodejsProfiler.isEnabled()).toBe(true);
327-
expect(mockSink.open).toHaveBeenCalledTimes(1);
325+
expect(mockSink.isClosed()).toBeFalse();
326+
expect(nodejsProfiler.isEnabled()).toBeTrue();
327+
expect(mockSink.open).toHaveBeenCalledOnce();
328328
});
329329

330330
it('should create performance entries and write to sink', () => {
@@ -344,9 +344,9 @@ describe('NodeJS Profiler Integration', () => {
344344

345345
it('should disable profiling and close sink', () => {
346346
nodejsProfiler.setEnabled(false);
347-
expect(nodejsProfiler.isEnabled()).toBe(false);
348-
expect(mockSink.isClosed()).toBe(true);
349-
expect(mockSink.close).toHaveBeenCalledTimes(1);
347+
expect(nodejsProfiler.isEnabled()).toBeFalse();
348+
expect(mockSink.isClosed()).toBeTrue();
349+
expect(mockSink.close).toHaveBeenCalledOnce();
350350

351351
expect(nodejsProfiler.measure('disabled-test', () => 'success')).toBe(
352352
'success',
@@ -359,8 +359,8 @@ describe('NodeJS Profiler Integration', () => {
359359
nodejsProfiler.setEnabled(false);
360360
nodejsProfiler.setEnabled(true);
361361

362-
expect(nodejsProfiler.isEnabled()).toBe(true);
363-
expect(mockSink.isClosed()).toBe(false);
362+
expect(nodejsProfiler.isEnabled()).toBeTrue();
363+
expect(mockSink.isClosed()).toBeFalse();
364364
expect(mockSink.open).toHaveBeenCalledTimes(2);
365365

366366
expect(nodejsProfiler.measure('re-enabled-test', () => 42)).toBe(42);
@@ -397,8 +397,8 @@ describe('NodeJS Profiler Integration', () => {
397397

398398
const bufferedStats = bufferedProfiler.stats;
399399
expect(bufferedStats.state).toBe('running');
400-
expect(bufferedStats.walOpen).toBe(true);
401-
expect(bufferedStats.isSubscribed).toBe(true);
400+
expect(bufferedStats.walOpen).toBeTrue();
401+
expect(bufferedStats.isSubscribed).toBeTrue();
402402
expect(bufferedStats.queued).toBe(0);
403403
expect(bufferedStats.dropped).toBe(0);
404404
expect(bufferedStats.written).toBe(0);
@@ -421,8 +421,8 @@ describe('NodeJS Profiler Integration', () => {
421421

422422
const stats = statsProfiler.stats;
423423
expect(stats.state).toBe('running');
424-
expect(stats.walOpen).toBe(true);
425-
expect(stats.isSubscribed).toBe(true);
424+
expect(stats.walOpen).toBeTrue();
425+
expect(stats.isSubscribed).toBeTrue();
426426
expect(typeof stats.queued).toBe('number');
427427
expect(typeof stats.dropped).toBe('number');
428428
expect(typeof stats.written).toBe('number');
@@ -443,8 +443,8 @@ describe('NodeJS Profiler Integration', () => {
443443

444444
const initialStats = profiler.stats;
445445
expect(initialStats.state).toBe('running');
446-
expect(initialStats.walOpen).toBe(true);
447-
expect(initialStats.isSubscribed).toBe(true);
446+
expect(initialStats.walOpen).toBeTrue();
447+
expect(initialStats.isSubscribed).toBeTrue();
448448
expect(initialStats.queued).toBe(0);
449449
expect(initialStats.dropped).toBe(0);
450450
expect(initialStats.written).toBe(0);
@@ -458,8 +458,8 @@ describe('NodeJS Profiler Integration', () => {
458458

459459
const finalStats = profiler.stats;
460460
expect(finalStats.state).toBe('idle');
461-
expect(finalStats.walOpen).toBe(false);
462-
expect(finalStats.isSubscribed).toBe(false);
461+
expect(finalStats.walOpen).toBeFalse();
462+
expect(finalStats.isSubscribed).toBeFalse();
463463
expect(finalStats.queued).toBe(0);
464464
});
465465
});

0 commit comments

Comments
 (0)