Added blank string test to repeatString

This commit is contained in:
Roger 2020-05-08 16:59:37 +10:00
parent 3758497cb2
commit 5817ea2140

View file

@ -27,4 +27,7 @@ describe('repeatString', function() {
was randomaly generated. */ was randomaly generated. */
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number); expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number);
}); });
xit('works with blank strings', function() {
expect(repeatString('', 10)).toEqual('');
});
}); });