Codacy issue fixes

This commit is contained in:
Angelos Chalaris
2018-06-18 21:18:53 +03:00
parent ba3fcbb95a
commit 17fb304f04
32 changed files with 45 additions and 45 deletions

View File

@ -12,7 +12,7 @@ test('Returns a random sample of specified size from an array', () => {
expect(sampleSize(arr, 2).every(x => arr.includes(x))).toBeTruthy();
});
test('Returns all elements in an array if n >= length', () => {
expect(sampleSize(arr, 5).length).toBe(4)
expect(sampleSize(arr, 5).length).toBe(4);
});
test('Returns an empty array if original array is empty', () => {
expect(sampleSize([], 2)).toEqual([]);