Skip to content

Commit 0c49a20

Browse files
committed
adapt text
1 parent 3546222 commit 0c49a20

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
@@ -166,11 +166,11 @@ describe('isPrimitive', () => {
166166
})
167167

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

173-
it('returns false for objects with non-primitive values', () => {
173+
it('returns false for objects with non-primitive (or string) values', () => {
174174
expect(shouldObjectCollapse({ a: 1, b: {} })).toBe(false)
175175
expect(shouldObjectCollapse({ a: 1, b: 'test' })).toBe(false)
176176
})

0 commit comments

Comments
 (0)