fix: ValidateURL failing tests (#1394)

* test: remove ValidateUrl.test.js

The code was removed with ecac786d but the test was left here (and has been failing since then, obviously 🤣)

* test: remove conflicting test case

There is another test case that explicitly expects the `null` result when the input array only contains one element.

* Updated Documentation in README.md

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Roland Hummel
2023-10-02 09:13:37 +02:00
committed by GitHub
parent f271a2cae0
commit b7836122ff
2 changed files with 0 additions and 19 deletions

View File

@ -9,11 +9,6 @@ describe('Testing parityOutlier function', () => {
expect(parityOutlier([177, 5, 76, 1919])).toBe(76)
})
it('should, if the given array has only one integer element, return the integer itself', () => {
expect(parityOutlier([83])).toBe(83)
expect(parityOutlier([54])).toBe(54)
})
it('should, if the given array has only an odd and an even number, return the odd outlier', () => {
expect(parityOutlier([1, 2])).toBe(1)
expect(parityOutlier([4, 3])).toBe(3)