From 687f7f4fd6c03b02e59860b73e2dfb9a7644c6ce Mon Sep 17 00:00:00 2001 From: Eyas Ranjous Date: Sat, 25 Jun 2022 18:29:52 -0700 Subject: [PATCH] typos --- src/RandomRoundRobin.js | 2 +- test/PriorityRoundRobin.test.js | 4 ++-- test/RandomRoundRobin.test.js | 4 ++-- test/SequentialRoundRobin.test.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/RandomRoundRobin.js b/src/RandomRoundRobin.js index 94b1093..8a12462 100644 --- a/src/RandomRoundRobin.js +++ b/src/RandomRoundRobin.js @@ -131,7 +131,7 @@ class RandomRoundRobin extends RoundRobin { * @return {RoundRobin} */ reset() { - super.clear(); + super.reset(); this._init(); return this; } diff --git a/test/PriorityRoundRobin.test.js b/test/PriorityRoundRobin.test.js index 15d9ff7..7082381 100644 --- a/test/PriorityRoundRobin.test.js +++ b/test/PriorityRoundRobin.test.js @@ -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); diff --git a/test/RandomRoundRobin.test.js b/test/RandomRoundRobin.test.js index 57f1e13..6b1ea15 100644 --- a/test/RandomRoundRobin.test.js +++ b/test/RandomRoundRobin.test.js @@ -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); diff --git a/test/SequentialRoundRobin.test.js b/test/SequentialRoundRobin.test.js index b5159d6..92ce9e4 100644 --- a/test/SequentialRoundRobin.test.js +++ b/test/SequentialRoundRobin.test.js @@ -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); @@ -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);