feat(editor): auto alias SQL table completions
* feat: auto alias SQL table completions * fix: preserve alias suggestion fallback order --------- Co-authored-by: t8y2 <1156263951@qq.com>
This commit is contained in:
1 parent
1cd3406e94
commit
b8511051cd
14 files changed
+173
-19
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { normalizeEditorSettings } from "@/stores/settingsStore";
|
||||
|
||||
describe("normalizeEditorSettings", () => {
|
||||
it("enables automatic table aliases by default", () => {
|
||||
expect(normalizeEditorSettings({}).autoAliasTables).toBe(true);
|
||||
});
|
||||
|
||||
it("preserves disabled automatic table aliases", () => {
|
||||
expect(normalizeEditorSettings({ autoAliasTables: false }).autoAliasTables).toBe(false);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user