@@ -4,19 +4,19 @@ describe('repeatString', () => {
4
4
test ( 'repeats the string' , ( ) => {
5
5
expect ( repeatString ( 'hey' , 3 ) ) . toEqual ( 'heyheyhey' ) ;
6
6
} ) ;
7
- test . skip ( 'repeats the string many times' , ( ) => {
7
+ test ( 'repeats the string many times' , ( ) => {
8
8
expect ( repeatString ( 'hey' , 10 ) ) . toEqual ( 'heyheyheyheyheyheyheyheyheyhey' ) ;
9
9
} ) ;
10
- test . skip ( 'repeats the string 1 times' , ( ) => {
10
+ test ( 'repeats the string 1 times' , ( ) => {
11
11
expect ( repeatString ( 'hey' , 1 ) ) . toEqual ( 'hey' ) ;
12
12
} ) ;
13
- test . skip ( 'repeats the string 0 times' , ( ) => {
13
+ test ( 'repeats the string 0 times' , ( ) => {
14
14
expect ( repeatString ( 'hey' , 0 ) ) . toEqual ( '' ) ;
15
15
} ) ;
16
- test . skip ( 'returns ERROR with negative numbers' , ( ) => {
16
+ test ( 'returns ERROR with negative numbers' , ( ) => {
17
17
expect ( repeatString ( 'hey' , - 1 ) ) . toEqual ( 'ERROR' ) ;
18
18
} ) ;
19
- test . skip ( 'repeats the string a random amount of times' , function ( ) {
19
+ test ( 'repeats the string a random amount of times' , function ( ) {
20
20
/*The number is generated by using Math.random to get a value from between
21
21
0 to 1, when this is multiplied by 1000 and rounded down with Math.floor it
22
22
equals a number between 0 to 999 (this number will change everytime you run
@@ -31,7 +31,7 @@ describe('repeatString', () => {
31
31
was randomly generated. */
32
32
expect ( repeatString ( 'hey' , number ) . match ( / ( ( h e y ) ) / g) . length ) . toEqual ( number ) ;
33
33
} ) ;
34
- test . skip ( 'works with blank strings' , ( ) => {
34
+ test ( 'works with blank strings' , ( ) => {
35
35
expect ( repeatString ( '' , 10 ) ) . toEqual ( '' ) ;
36
36
} ) ;
37
37
} ) ;
0 commit comments