Merge pull request #74 from imrogerjiang/new-tests

This commit is contained in:
Briggs Elsperger 2020-05-09 12:16:42 -05:00 committed by GitHub
commit 888383a44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -19,4 +19,7 @@ describe('removeFromArray', function() {
xit('works with strings', function() {
expect(removeFromArray(["hey", 2, 3, "ho"], "hey", 3)).toEqual([2, "ho"]);
});
xit('only removes same type', function() {
expect(removeFromArray([1, 2, 3], "1", 3)).toEqual([1, 2]);
});
});

View File

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

View File

@ -12,4 +12,7 @@ describe('reverseString', function() {
xit('works with numbers and punctuation', function() {
expect(reverseString('123! abc!')).toEqual('!cba !321')
})
xit('works with blank strings', function() {
expect(reverseString('')).toEqual('')
})
});