blob: ee94bac80007d01554838150f47574716fe61dda (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import shuffleArray from '../../src/helpers/array-helpers';
describe('array_helpers', () => {
it('isValidExternalURL', () => {
const originalArray = ['a', 'b', 'c'];
const shuffledArray = shuffleArray(originalArray);
// Expect the arrays to be exactly the same
// when both are sorted alphabetically
expect(shuffledArray.sort()).toEqual(originalArray.sort());
});
});
|