Added blank string test to repeatString

This commit is contained in:
Roger 2020-05-08 16:59:37 +10:00
parent 3758497cb2
commit 5817ea2140
1 changed files with 3 additions and 0 deletions

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('');
});
}); });