We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d792a2 commit 2c8c102Copy full SHA for 2c8c102
test/utils/shallowEqual.spec.js
@@ -70,5 +70,51 @@ describe('Utils', () => {
70
)
71
).toBe(false)
72
})
73
+
74
75
+ it('should compare two NaN values', () => {
76
+ expect(
77
+ shallowEqual(
78
+ NaN,
79
+ NaN
80
+ )
81
+ ).toBe(true)
82
+ })
83
84
+ it('should compare empty objects, with false', () => {
85
86
87
+ {},
88
+ false
89
90
+ ).toBe(false)
91
92
93
+ false,
94
+ {}
95
96
97
98
99
+ [],
100
101
102
103
104
105
106
+ []
107
108
109
110
111
+ it('should compare two zero values', () => {
112
113
114
+ 0,
115
+ 0
116
117
118
119
120
0 commit comments