[FIX] allEqual.test.js test arrays with different types in the same array (#805)

allEqual test false when there are different types
This commit is contained in:
itchylol742
2018-10-04 15:06:48 -04:00
committed by Angelos Chalaris
parent 1f557d34af
commit 0fa5902940

View File

@ -36,3 +36,7 @@ test('Falsy trues', () => {
test('Falsy falses', () => {
expect(allEqual([false, false, true])).toBeFalsy();
});
test('False when there are different types', () => {
expect(allEqual([1, '1', true])).toBeFalsy();
});