feat(saved-sql): run queries in the current database
This commit is contained in:
@@ -12,3 +12,9 @@ test("SQL library imports use the charset-aware external SQL reader", () => {
|
||||
assert.match(handler, /await api\.readExternalSqlFile\(path\)/);
|
||||
assert.doesNotMatch(handler, /readTextFile/);
|
||||
});
|
||||
|
||||
test("SQL library file menu can open a file with the current tab target", () => {
|
||||
assert.match(source, /label: t\("sqlLibrary\.openInCurrentDatabase"\)/);
|
||||
assert.match(source, /action: \(\) => openFile\(target, "current"\)/);
|
||||
assert.match(source, /disabled: !hasCurrentSavedSqlExecutionTarget\.value/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user