Skip to content

Commit

Permalink
fix: Lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
krynble committed Nov 1, 2023
1 parent 7c7d9d8 commit 665ca7e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/cli/test/unit/PermissionChecker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ describe('PermissionChecker.checkSubworkflowExecutePolicy', () => {
});

test('if sharing is disabled, ensures that workflows are owned by same user and reject running workflows belonging to another user even if setting allows execution', async () => {
jest
.spyOn(ownershipService, 'getWorkflowOwnerCached')
.mockResolvedValue(nonOwnerUser)
jest.spyOn(ownershipService, 'getWorkflowOwnerCached').mockResolvedValue(nonOwnerUser);
jest.spyOn(UserManagementHelper, 'isSharingEnabled').mockReturnValue(false);

const subworkflow = new Workflow({
Expand Down

0 comments on commit 665ca7e

Please sign in to comment.