Skip to content

Commit 2d342dc

Browse files
committed
[fix] Reset indentation
1 parent c7eeff2 commit 2d342dc

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Maths/test/ParityOutlier.test.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,29 @@ import { parityOutlier } from "../ParityOutlier";
22

33
describe('Testing parityOutlier function', () => {
44

5-
it('should return the odd number in an array of even numbers', () => {
6-
expect(parityOutlier([1, 2, 16, -8848, 5126])).toBe(1);
7-
});
5+
it('should return the odd number in an array of even numbers', () => {
6+
expect(parityOutlier([1, 2, 16, -8848, 5126])).toBe(1);
7+
});
88

9-
it('should return the even number in an array of odd numbers', () => {
10-
expect(parityOutlier([177, 5, 76, 1919])).toBe(76);
11-
});
9+
it('should return the even number in an array of odd numbers', () => {
10+
expect(parityOutlier([177, 5, 76, 1919])).toBe(76);
11+
});
1212

13-
it('should, if the given array has only one integer element, return the integer itself', () => {
14-
expect(parityOutlier([83])).toBe(83);
15-
expect(parityOutlier([54])).toBe(54);
16-
});
13+
it('should, if the given array has only one integer element, return the integer itself', () => {
14+
expect(parityOutlier([83])).toBe(83);
15+
expect(parityOutlier([54])).toBe(54);
16+
});
1717

18-
it('should, if the given array has only an odd and an even number, return the odd outlier', () => {
19-
expect(parityOutlier([1, 2])).toBe(1);
20-
expect(parityOutlier([4, 3])).toBe(3);
21-
});
18+
it('should, if the given array has only an odd and an even number, return the odd outlier', () => {
19+
expect(parityOutlier([1, 2])).toBe(1);
20+
expect(parityOutlier([4, 3])).toBe(3);
21+
});
2222

23-
it('should return null if the given array is empty, contains only one integer, contains non-interger elements or does not have a parity outlier', () => {
24-
expect(parityOutlier([])).toBe(null);
25-
expect(parityOutlier([2])).toBe(null);
26-
expect(parityOutlier([2, {}, 5, 'GitHub'])).toBe(null);
27-
expect(parityOutlier([1, 3, 5, 7, 9])).toBe(null);
28-
expect(parityOutlier([0, 2, 4, 6, 8])).toBe(null);
29-
});
23+
it('should return null if the given array is empty, contains only one integer, contains non-interger elements or does not have a parity outlier', () => {
24+
expect(parityOutlier([])).toBe(null);
25+
expect(parityOutlier([2])).toBe(null);
26+
expect(parityOutlier([2, {}, 5, 'GitHub'])).toBe(null);
27+
expect(parityOutlier([1, 3, 5, 7, 9])).toBe(null);
28+
expect(parityOutlier([0, 2, 4, 6, 8])).toBe(null);
29+
});
3030
});

0 commit comments

Comments
 (0)