Skip to content

Commit a1c84ac

Browse files
Reorder expected test data
1 parent ff685f0 commit a1c84ac

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

extensions/ql-vscode/test/vscode-tests/no-workspace/model-editor/methods-usage/methods-usage-data-provider.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ describe("MethodsUsageDataProvider", () => {
392392
}),
393393
];
394394

395-
it("should sort methods", async () => {
395+
it("should not change sort methods of methods", async () => {
396396
await dataProvider.setState(
397397
methods,
398398
dbItem,
@@ -407,11 +407,7 @@ describe("MethodsUsageDataProvider", () => {
407407
.map(
408408
(item) => (item as MethodsUsageTreeViewItem).method.signature,
409409
),
410-
).toEqual(["b.a.C.d()", "b.a.C.b()", "b.a.C.a()", "a.b.C.d()"]);
411-
// reasoning for sort order:
412-
// b.a.C.d() has more usages than b.a.C.b()
413-
// b.a.C.b() is supported, b.a.C.a() is not
414-
// b.a.C.a() is in a more unsupported library, a.b.C.d() is in a more supported library
410+
).toEqual(["b.a.C.a()", "b.a.C.b()", "b.a.C.d()", "a.b.C.d()"]);
415411
});
416412
});
417413
});

0 commit comments

Comments
 (0)