Revert "Merge branch 'jest'"

This reverts commit f76e9e108f.
This commit is contained in:
Marvin Gay
2021-05-12 21:47:42 -04:00
parent f76e9e108f
commit ad1c0c407f
45 changed files with 217 additions and 6166 deletions
+8 -8
View File
@@ -1,22 +1,22 @@
const repeatString = require('./repeatString')
describe('repeatString', () => {
test('repeats the string', () => {
describe('repeatString', function() {
it('repeats the string', function() {
expect(repeatString('hey', 3)).toEqual('heyheyhey');
});
test.skip('repeats the string many times', () => {
xit('repeats the string many times', function() {
expect(repeatString('hey', 10)).toEqual('heyheyheyheyheyheyheyheyheyhey');
});
test.skip('repeats the string 1 times', () => {
xit('repeats the string 1 times', function() {
expect(repeatString('hey', 1)).toEqual('hey');
});
test.skip('repeats the string 0 times', () => {
xit('repeats the string 0 times', function() {
expect(repeatString('hey', 0)).toEqual('');
});
test.skip('returns ERROR with negative numbers', () => {
xit('returns ERROR with negative numbers', function() {
expect(repeatString('hey', -1)).toEqual('ERROR');
});
test.skip('repeats the string a random amount of times', function () {
xit('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
@@ -31,7 +31,7 @@ describe('repeatString', () => {
was randomaly generated. */
expect(repeatString('hey', number).match(/((hey))/g).length).toEqual(number);
});
test.skip('works with blank strings', () => {
xit('works with blank strings', function() {
expect(repeatString('', 10)).toEqual('');
});
});