Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

702 B
Raw Blame
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");
  });
});