Skip to content

Commit bc59000

Browse files
committed
adapt text
1 parent e14ec97 commit bc59000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Json/Json.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ describe('isPrimitive', () => {
162162
})
163163

164164
describe('shouldObjectCollapse', () => {
165-
it('returns true for objects with all primitive values', () => {
165+
it('returns true for objects with all primitive (but string) values', () => {
166166
expect(shouldObjectCollapse({ a: 1, b: false })).toBe(true)
167167
})
168168

169-
it('returns false for objects with non-primitive values', () => {
169+
it('returns false for objects with non-primitive (or string) values', () => {
170170
expect(shouldObjectCollapse({ a: 1, b: {} })).toBe(false)
171171
expect(shouldObjectCollapse({ a: 1, b: 'test' })).toBe(false)
172172
})

0 commit comments

Comments
 (0)