|
1 | 1 | import { expect } from 'chai'; |
2 | 2 | import toSimplifiedFieldInfo from './to-simplified-field-info'; |
3 | | -import type { UserFriendlyFieldInfoTree } from './to-simplified-field-info'; |
| 3 | +import type { SimplifiedFieldInfoTree } from './to-simplified-field-info'; |
4 | 4 |
|
5 | 5 | describe('toSimplifiedFieldInfo', function () { |
6 | 6 | it('simple case with minimal nesting and no arrays', function () { |
@@ -39,7 +39,7 @@ describe('toSimplifiedFieldInfo', function () { |
39 | 39 |
|
40 | 40 | const result = toSimplifiedFieldInfo(input); |
41 | 41 |
|
42 | | - const expected: UserFriendlyFieldInfoTree = { |
| 42 | + const expected: SimplifiedFieldInfoTree = { |
43 | 43 | user: { |
44 | 44 | name: 'String', |
45 | 45 | age: 'Number', |
@@ -93,7 +93,7 @@ describe('toSimplifiedFieldInfo', function () { |
93 | 93 |
|
94 | 94 | const result = toSimplifiedFieldInfo(input); |
95 | 95 |
|
96 | | - const expected: UserFriendlyFieldInfoTree = { |
| 96 | + const expected: SimplifiedFieldInfoTree = { |
97 | 97 | 'tags[]': 'String', |
98 | 98 | 'scores[]': 'Number', |
99 | 99 | 'matrix[][]': 'Number', |
@@ -141,7 +141,7 @@ describe('toSimplifiedFieldInfo', function () { |
141 | 141 |
|
142 | 142 | const result = toSimplifiedFieldInfo(input); |
143 | 143 |
|
144 | | - const expected: UserFriendlyFieldInfoTree = { |
| 144 | + const expected: SimplifiedFieldInfoTree = { |
145 | 145 | 'items[]': { |
146 | 146 | id: 'Number', |
147 | 147 | name: 'String', |
@@ -224,7 +224,7 @@ describe('toSimplifiedFieldInfo', function () { |
224 | 224 |
|
225 | 225 | const result = toSimplifiedFieldInfo(input); |
226 | 226 |
|
227 | | - const expected: UserFriendlyFieldInfoTree = { |
| 227 | + const expected: SimplifiedFieldInfoTree = { |
228 | 228 | 'cube[][][]': 'Number', |
229 | 229 | 'matrix[][]': { |
230 | 230 | x: 'Number', |
|
0 commit comments