Skip to content

Commit 5ba64a1

Browse files
Add test for when there's no modeled method
1 parent f87b1c4 commit 5ba64a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/ql-vscode/src/view/model-editor/__tests__/MethodRow.spec.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ describe(MethodRow.name, () => {
6464
expect(screen.queryByLabelText("Loading")).not.toBeInTheDocument();
6565
});
6666

67+
it("renders when there is no modeled method", () => {
68+
render({ modeledMethods: [] });
69+
70+
expect(screen.queryAllByRole("combobox")).toHaveLength(4);
71+
expect(screen.getByLabelText("Method not modeled")).toBeInTheDocument();
72+
expect(screen.queryByLabelText("Loading")).not.toBeInTheDocument();
73+
});
74+
6775
it("can change the kind", async () => {
6876
render();
6977

0 commit comments

Comments
 (0)