Skip to content

Commit

Permalink
Update loader tests
Browse files Browse the repository at this point in the history
- Fix spy usage in BasePackageLoader tests
- Add BasePackageLoader tests for more coverage
- Add DefaultPackageLoader tests
- Change log message on successful package load to use the actual
  loaded version, which may be different than the requested version.
  • Loading branch information
mint-thompson authored and cmoesel committed Oct 3, 2024
1 parent 11497f7 commit abe5760
Show file tree
Hide file tree
Showing 4 changed files with 1,353 additions and 428 deletions.
2 changes: 1 addition & 1 deletion src/loader/BasePackageLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class BasePackageLoader implements PackageLoader {
this.log('error', `Failed to load ${name}#${version}`);
return LoadStatus.FAILED;
}
this.log('info', `Loaded ${packageLabel} with ${stats.resourceCount} resources`);
this.log('info', `Loaded ${stats.name}#${stats.version} with ${stats.resourceCount} resources`);
return LoadStatus.LOADED;
}

Expand Down
Loading

0 comments on commit abe5760

Please sign in to comment.