Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Jul 22, 2024
1 parent 32a7068 commit 8e580da
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/breaker/Breaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ export interface IBreaker {
export * from './ConsecutiveBreaker';
export * from './CountBreaker';
export * from './SamplingBreaker';

1 change: 0 additions & 1 deletion src/breaker/CountBreaker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ describe('CountBreaker', () => {
expect(state.samples).to.deep.equal([true, false, true, true, true]);
});


it('serializes and deserializes', () => {
let b = new CountBreaker({ threshold: 0.5, size: 5 });
for (let i = 0; i < 9; i++) {
Expand Down
2 changes: 0 additions & 2 deletions src/breaker/CountBreaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ export interface ICountBreakerOptions {
minimumNumberOfCalls?: number;
}


interface ICountBreakerState {
samples: (boolean | null)[];
currentSample: number;
failures: number;
successes: number;
}


export class CountBreaker implements IBreaker {
private readonly threshold: number;
private readonly minimumNumberOfCalls: number;
Expand Down
3 changes: 0 additions & 3 deletions src/breaker/SamplingBreaker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ describe('SamplingBreaker', () => {
});
});




describe('functionality', () => {
let b: SamplingBreaker;
let clock: SinonFakeTimers;
Expand Down

0 comments on commit 8e580da

Please sign in to comment.