@@ -4,15 +4,15 @@ const { SequentialRoundRobin } = require('../src/SequentialRoundRobin');
44describe ( 'SequentialRoundRobin tests' ,  ( )  =>  { 
55  const  round  =  new  SequentialRoundRobin ( [ 'item 1' ,  'item 2' ] ) ; 
66
7-   describe ( '. add' ,  ( )  =>  { 
7+   describe ( 'add' ,  ( )  =>  { 
88    it ( 'adds items to the round' ,  ( )  =>  { 
99      expect ( round . add ( 'item 3' ) ) . to . deep . equal ( {  key : 2 ,  value : 'item 3'  } ) ; 
1010      expect ( round . add ( 'item 4' ) ) . to . deep . equal ( {  key : 3 ,  value : 'item 4'  } ) ; 
1111      expect ( round . count ( ) ) . to . equal ( 4 ) ; 
1212    } ) ; 
1313  } ) ; 
1414
15-   describe ( '. next' ,  ( )  =>  { 
15+   describe ( 'next' ,  ( )  =>  { 
1616    it ( 'gets the next item in the round' ,  ( )  =>  { 
1717      const  next1  =  round . next ( ) ; 
1818      expect ( next1 . key ) . to . equal ( 0 ) ; 
@@ -37,10 +37,10 @@ describe('SequentialRoundRobin tests', () => {
3737    } ) ; 
3838  } ) ; 
3939
40-   describe ( '. delete' ,  ( )  =>  { 
40+   describe ( 'delete' ,  ( )  =>  { 
4141    it ( 'removes items from the round' ,  ( )  =>  { 
42-       round . delete ( 1 ) ; 
43-       round . delete ( 3 ) ; 
42+       round . deleteByKey ( 1 ) ; 
43+       round . deleteByKey ( 3 ) ; 
4444      expect ( round . count ( ) ) . to . equal ( 2 ) ; 
4545
4646      const  next1  =  round . next ( ) ; 
@@ -66,7 +66,7 @@ describe('SequentialRoundRobin tests', () => {
6666    } ) ; 
6767  } ) ; 
6868
69-   describe ( '. reset' ,  ( )  =>  { 
69+   describe ( 'reset' ,  ( )  =>  { 
7070    it ( 'reset the round' ,  ( )  =>  { 
7171      round . reset ( ) ; 
7272      expect ( round . count ( ) ) . to . equal ( 2 ) ; 
@@ -81,7 +81,7 @@ describe('SequentialRoundRobin tests', () => {
8181    } ) ; 
8282  } ) ; 
8383
84-   describe ( '. clear' ,  ( )  =>  { 
84+   describe ( 'clear' ,  ( )  =>  { 
8585    it ( 'clears the round' ,  ( )  =>  { 
8686      round . clear ( ) ; 
8787      expect ( round . count ( ) ) . to . equal ( 0 ) ; 
0 commit comments