Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
eyas-ranjous committed Jun 26, 2022
1 parent fa6f462 commit 687f7f4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/RandomRoundRobin.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class RandomRoundRobin extends RoundRobin {
* @return {RoundRobin}
*/
reset() {
super.clear();
super.reset();
this._init();
return this;
}
Expand Down
4 changes: 2 additions & 2 deletions test/PriorityRoundRobin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ describe('PriorityRoundRobin tests', () => {
});

describe('reset', () => {
it('reset the round', () => {
it('reset the table', () => {
round.reset();
expect(round.count()).to.equal(0);
});
});

describe('clear', () => {
it('clears the round', () => {
it('clears the table', () => {
round.clear();
expect(round.count()).to.equal(0);
expect(round.next()).to.equal(null);
Expand Down
4 changes: 2 additions & 2 deletions test/RandomRoundRobin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ describe('RandomRoundRobin tests', () => {
});

describe('reset', () => {
it('reset the round', () => {
it('reset the table', () => {
round.reset();
expect(round.count()).to.equal(2);
});
});

describe('clear', () => {
it('clears the round', () => {
it('clears the table', () => {
round.clear();
expect(round.count()).to.equal(0);
expect(round.next()).to.equal(null);
Expand Down
4 changes: 2 additions & 2 deletions test/SequentialRoundRobin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('SequentialRoundRobin tests', () => {
});

describe('reset', () => {
it('reset the round', () => {
it('reset the table', () => {
round.reset();
expect(round.count()).to.equal(2);

Expand All @@ -95,7 +95,7 @@ describe('SequentialRoundRobin tests', () => {
});

describe('clear', () => {
it('clears the round', () => {
it('clears the table', () => {
round.clear();
expect(round.count()).to.equal(0);
expect(round.next()).to.equal(null);
Expand Down

0 comments on commit 687f7f4

Please sign in to comment.