🌐 AI搜索 & 代理 主页
Skip to content

Commit db7fa23

Browse files
authored
Update normalize-fields.spec.js
1 parent e6f7f81 commit db7fa23

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/table/helpers/normalize-fields.spec.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ describe('table/helpers/normalize-fields', () => {
6161
})
6262

6363
it('handles formatter shortcut', async () => {
64-
const formatter = value => { return value }
64+
const formatter = value => value
6565
const arr1 = [{ foo: formatter }]
6666

67-
expect(normalizeFields(arr1, [])).toEqual([
68-
{ key: 'foo', formatter: formatter }
69-
])
67+
expect(normalizeFields(arr1, [])).toEqual([{ key: 'foo', label: 'Foo', formatter: formatter }])
7068
})
7169

7270
it('removes duplicate fields (preserving the first found)', async () => {

0 commit comments

Comments
 (0)