Passed random number test
This commit is contained in:
		
							parent
							
								
									52356b2eb6
								
							
						
					
					
						commit
						cc3e1d116b
					
				| 
						 | 
				
			
			@ -16,7 +16,7 @@ describe('repeatString', function() {
 | 
			
		|||
    it('returns ERROR with negative numbers', function() {
 | 
			
		||||
        expect(repeatString('hey', -1)).toEqual('ERROR');
 | 
			
		||||
    });
 | 
			
		||||
    xit('repeats the string a random amount of times', function() {
 | 
			
		||||
    it('repeats the string a random amount of times', function() {
 | 
			
		||||
        /*The number is generated by using Math.random to get a value from between
 | 
			
		||||
        0 to 1, when this is multiplied by 1000 and rounded down with Math.floor it 
 | 
			
		||||
        equals a number between 0 to 999 (this number will change everytime you run
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue