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