[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:
committed by
Angelos Chalaris
parent
1f557d34af
commit
0fa5902940
@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user