Skip to content

Commit

Permalink
Utils: Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssSavenko committed Jan 16, 2025
1 parent 27f75ed commit 11bede5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/utils/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ function resetConsole(): void {

export async function runTests(options?: TestExecutionOptions) {
const package_ = grok.functions.getCurrentCall()?.func?.package;
const packageOwner = (package_.packageOwner.match(new RegExp('[^<]*<([^>]*)>'))?? ['', ''])[1];
const packageOwner = ((package_?.packageOwner ?? '').match(new RegExp('[^<]*<([^>]*)>'))?? ['', ''])[1];
await initAutoTests(package_);
const results: {
category?: string, name?: string, success: boolean,
Expand Down

0 comments on commit 11bede5

Please sign in to comment.