mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-17 11:03:14 -04:00
Add a few unit tests for dacpac extension (#9194)
* add a few unit tests * fix tests for linux
This commit is contained in:
@@ -120,7 +120,7 @@ export function isValidBasenameErrorMessage(name: string | null | undefined): st
|
||||
}
|
||||
|
||||
if (basename === '.' || basename === '..') {
|
||||
return loc.reservedWindowsFilenameErrorMessage; // check for reserved values
|
||||
return loc.reservedValueErrorMessage; // check for reserved values
|
||||
}
|
||||
|
||||
if (isWindows && basename.length !== basename.trim().length) {
|
||||
@@ -133,3 +133,7 @@ export function isValidBasenameErrorMessage(name: string | null | undefined): st
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
export function generateDatabaseName(filePath: string): string {
|
||||
return path.parse(filePath).name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user