feat(oracle): show table constraints in structure editor
This commit is contained in:
1 parent
76b8f2f54b
commit
f9c4f290f5
19 files changed
+413
-20
No files matched your search
+11
@@ -0,0 +1,11 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
const source = readFileSync(new URL("../TableStructureEditor.vue", import.meta.url), "utf8");
|
||||
|
||||
describe("TableStructureEditor constraints", () => {
|
||||
it("renders complete check expressions instead of truncating them", () => {
|
||||
expect(source).toContain('class="mt-1 whitespace-pre-wrap break-words font-mono text-muted-foreground">{{ constraint.definition }}');
|
||||
expect(source).not.toContain('class="mt-1 truncate font-mono text-muted-foreground">{{ constraint.definition }}');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user