Skip to content

Commit 4049be9

Browse files
committed
test: drop the scope sort helper test
It only covered the helper, not the hooks that rely on it, so it would pass even if the shelf loop came back.
1 parent 1bc403c commit 4049be9

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

‎packages/client-runtime/src/state/olderSettledThreads.test.ts‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import {
3838
isListedSettledThread,
3939
olderSettledCountKey,
4040
settledShelfFrontier,
41-
sortOlderSettledScopes,
4241
unloadedOlderSettledCount,
4342
wantedOlderSettledPages,
4443
type OlderSettled,
@@ -203,20 +202,6 @@ it("counts older threads the client does not hold, once", () => {
203202
).toBe(18);
204203
});
205204

206-
it("orders a shelf's scopes the same however its projects are ordered", () => {
207-
const otherEnvironment = EnvironmentId.make("env-b");
208-
const other = ProjectId.make("project-b");
209-
expect(
210-
sortOlderSettledScopes([
211-
{ environmentId: otherEnvironment, projectIds: null },
212-
{ environmentId, projectIds: [other, project] },
213-
]),
214-
).toEqual([
215-
{ environmentId, projectIds: [project, other] },
216-
{ environmentId: otherEnvironment, projectIds: null },
217-
]);
218-
});
219-
220205
describe("wantedOlderSettledPages", () => {
221206
const otherEnvironment = EnvironmentId.make("env-b");
222207
const full = (settledAt: string): OlderSettledPages => ({

0 commit comments

Comments
 (0)