mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Improve tests and add useGitOps hook test
This commit is contained in:
@@ -40,6 +40,10 @@ export const lookupFileByName = async (
|
||||
workspaceName: string,
|
||||
filename: string
|
||||
): Promise<string[]> => {
|
||||
if (!filename || typeof filename !== 'string') {
|
||||
throw new Error('Invalid filename provided for lookup');
|
||||
}
|
||||
|
||||
const response = await apiCall(
|
||||
`${API_BASE_URL}/workspaces/${encodeURIComponent(
|
||||
workspaceName
|
||||
|
||||
Reference in New Issue
Block a user