mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
Added blank string test to repeatString
This commit is contained in:
@@ -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('');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user