Commit ac5bf32
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 10bea9e commit ac5bf32
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | | - | |
1764 | | - | |
1765 | | - | |
1766 | | - | |
1767 | | - | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1768 | 1759 | | |
| 1760 | + | |
1769 | 1761 | | |
1770 | 1762 | | |
1771 | 1763 | | |
| |||
0 commit comments