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 3546222 commit 0c49a20Copy full SHA for 0c49a20
src/components/Json/Json.test.tsx
@@ -166,11 +166,11 @@ describe('isPrimitive', () => {
166
})
167
168
describe('shouldObjectCollapse', () => {
169
- it('returns true for objects with all primitive values', () => {
+ it('returns true for objects with all primitive (but string) values', () => {
170
expect(shouldObjectCollapse({ a: 1, b: false })).toBe(true)
171
172
173
- it('returns false for objects with non-primitive values', () => {
+ it('returns false for objects with non-primitive (or string) values', () => {
174
expect(shouldObjectCollapse({ a: 1, b: {} })).toBe(false)
175
expect(shouldObjectCollapse({ a: 1, b: 'test' })).toBe(false)
176
0 commit comments