refactor: improve sorting override framework #2846
Annotations
10 errors
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L236
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [],
"fallbackSort": {
"type": "unsorted",
},
+ "groups": [
+ {
+ "group": "group",
+ "type": "unsorted",
+ },
+ ],
"order": "asc",
"type": "unsorted",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:236:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L217
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [
+ {
+ "groupName": "group",
+ "type": "unsorted",
+ },
+ ],
"fallbackSort": {
"type": "unsorted",
+ },
+ "groups": [
+ {
+ "group": "group",
+ "type": "natural",
},
+ ],
"order": "asc",
"type": "unsorted",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:217:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L191
AssertionError: expected { fallbackSort: { …(2) }, …(4) } to strictly equal { fallbackSort: { …(2) }, …(2) }
- Expected
+ Received
{
+ "customGroups": [
+ {
+ "fallbackSort": {
+ "order": "desc",
+ "type": "alphabetical",
+ },
+ "groupName": "group",
+ },
+ ],
"fallbackSort": {
"order": "desc",
"type": "alphabetical",
},
+ "groups": [
+ "group",
+ ],
"order": "asc",
"type": "alphabetical",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:191:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L164
AssertionError: expected { fallbackSort: { …(2) }, …(4) } to strictly equal { fallbackSort: { …(2) }, …(2) }
- Expected
+ Received
{
+ "customGroups": [
+ {
"fallbackSort": {
+ "type": "alphabetical",
+ },
+ "groupName": "group",
+ },
+ ],
+ "fallbackSort": {
"order": "desc",
"type": "alphabetical",
},
+ "groups": [
+ "group",
+ ],
"order": "asc",
"type": "alphabetical",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:164:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L135
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [
+ {
"fallbackSort": {
"type": "unsorted",
},
+ "groupName": "group",
+ },
+ ],
+ "fallbackSort": {
+ "type": "unsorted",
+ },
+ "groups": [
+ "group",
+ ],
"order": "asc",
"type": "alphabetical",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:135:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L112
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [],
"fallbackSort": {
"type": "unsorted",
},
+ "groups": [
+ "group",
+ ],
"order": "asc",
"type": "alphabetical",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:112:7
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L95
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [
+ {
+ "groupName": "group",
+ "type": "unsorted",
+ },
+ ],
"fallbackSort": {
"type": "unsorted",
+ },
+ "groups": [
+ {
+ "commentAbove": "foo",
+ "group": [
+ "group",
+ ],
},
+ ],
"order": "asc",
"type": "alphabetical",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:95:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L74
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [
+ {
+ "groupName": "group",
+ "type": "unsorted",
+ },
+ ],
"fallbackSort": {
"type": "unsorted",
+ },
+ "groups": [
+ {
+ "commentAbove": "foo",
+ "group": "group",
},
+ ],
"order": "asc",
"type": "unsorted",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:74:9
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L52
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [
+ {
+ "groupName": "group",
+ "type": "unsorted",
+ },
+ ],
"fallbackSort": {
"type": "unsorted",
},
+ "groups": [
+ [
+ "group",
+ ],
+ ],
"order": "asc",
"type": "alphabetical",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:52:7
|
|
Test:
test/utils/compute-overridden-options-by-group-index.test.ts#L31
AssertionError: expected { …(5) } to strictly equal { …(3) }
- Expected
+ Received
{
+ "customGroups": [
+ {
+ "groupName": "group",
+ "type": "unsorted",
+ },
+ ],
"fallbackSort": {
"type": "unsorted",
},
+ "groups": [
+ "group",
+ ],
"order": "asc",
"type": "unsorted",
}
❯ test/utils/compute-overridden-options-by-group-index.test.ts:31:7
|
Loading