test: drop source-text assertion tests and merge locale checks
This commit is contained in:
1 parent
349d77d180
commit
8897e12714
257 files changed
+166
-12815
No files matched your search
-13
@@ -1,5 +1,4 @@
|
||||
import { strict as assert } from "node:assert";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { test } from "vitest";
|
||||
import * as langSql from "@codemirror/lang-sql";
|
||||
import { createDbxCodeMirrorSqlDialect } from "../../apps/desktop/src/lib/editor/codemirrorSqlDialect.ts";
|
||||
@@ -141,15 +140,3 @@ test("keeps MySQL-compatible double-dash whitespace rules", () => {
|
||||
assert.equal(countParsedNodes(dialect, "-- SELECT 1", "LineComment", "-- SELECT 1"), 1, databaseType);
|
||||
}
|
||||
});
|
||||
|
||||
test("propagates database type to every DDL viewer entrypoint", () => {
|
||||
const ddlViewDialog = readFileSync("apps/desktop/src/components/objects/DdlViewDialog.vue", "utf8");
|
||||
const connectionTree = readFileSync("apps/desktop/src/components/sidebar/ConnectionTree.vue", "utf8");
|
||||
const app = readFileSync("apps/desktop/src/App.vue", "utf8");
|
||||
|
||||
assert.match(ddlViewDialog, /createDbxCodeMirrorSqlDialect\(langSql, props\.dialect, props\.databaseType\)/);
|
||||
assert.match(connectionTree, /<SidebarDdlViewDialog/);
|
||||
assert.match(connectionTree, /:database-type="sidebarDdlDatabaseType"/);
|
||||
assert.match(connectionTree, /v-model:open="sidebarDdlOpen"/);
|
||||
assert.match(app, /<QueryEditorDdlViewDialog[^>]*:database-type="queryEditorDdlDatabaseType"[^>]*\/>/);
|
||||
});
|
||||
Reference in new issue
Block a user