Commit f5a5279
committed
test: Refactor SortBy unmarshal test like #4323
Use the testJSONUnmarshalOnly helper for the success case of
TestProjectV2ViewSortBy_UnmarshalJSON instead of unmarshaling by hand
and asserting field by field, matching the style introduced in #4323.
The error-case subtests stay manual since the helper expects a
successful unmarshal.1 parent d3a1a5e commit f5a5279
1 file changed
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
1753 | 1752 | | |
1754 | 1753 | | |
1755 | 1754 | | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
1768 | 1758 | | |
| 1759 | + | |
1769 | 1760 | | |
1770 | 1761 | | |
1771 | 1762 | | |
| |||
0 commit comments