blob: cbb7822e9df1e92458039b7cc2931ac8540e6be3 (
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());
});
});
|