mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
The database tree lists routines in one `routines` folder. A Separate Procedures and Functions option in the Database tool window's menu (off by default, remembered across sessions) lists `procedures` and `functions` folders instead, each holding only routines of that kind, with the same overload-aware keys and object filter. Expanded folders carry over when the option is switched either way. Co-authored-by: boenkkk <17746937+boenkkk@users.noreply.github.com>
18 lines
702 B
TypeScript
18 lines
702 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { routineFolder, tableFolder } from "./nodes";
|
|
|
|
describe("schema folders", () => {
|
|
it("combines routines by default and separates them on request", () => {
|
|
expect(routineFolder("procedure")).toBe("routines");
|
|
expect(routineFolder("function")).toBe("routines");
|
|
expect(routineFolder("procedure", true)).toBe("procedures");
|
|
expect(routineFolder("function", true)).toBe("functions");
|
|
});
|
|
|
|
it("keeps tables, views and materialized views apart", () => {
|
|
expect(tableFolder("table")).toBe("tables");
|
|
expect(tableFolder("view")).toBe("views");
|
|
expect(tableFolder("materializedView")).toBe("materializedViews");
|
|
});
|
|
});
|