Skip to content

Commit

Permalink
test: update test for no analysis configs (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
formulahendry authored Jan 9, 2025
1 parent 8060199 commit 54a265e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/unit/tree/rules/ProfilesTreeItem.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ describe('ProfilesTreeItem', () => {
});

it('should handle no analysis configs gracefully', async () => {
const apiCenterServiceStub = sandbox.stub(ApiCenterService.prototype, 'getApiCenterAnalyzerConfigs').resolves({ value: [] });
sandbox.stub(profilesTreeItem, 'createTreeItemsWithErrorHandling').resolves([]);
const apiCenterServiceStub = sandbox.stub(ApiCenterService.prototype, 'getApiCenterAnalyzerConfigs').resolves(undefined);

const children = await profilesTreeItem.loadMoreChildrenImpl(false, <IActionContext>{});

Expand Down

0 comments on commit 54a265e

Please sign in to comment.