Skip to content

Commit

Permalink
#2770-use user param
Browse files Browse the repository at this point in the history
  • Loading branch information
caiodasilva2005 committed Sep 20, 2024
1 parent 13a3f4f commit ca0fc03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/tests/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,8 @@ export const createTestDesignReview = async () => {
export const createTestTask = async (user: User, organization?: Organization) => {
if (!organization) organization = await createTestOrganization();
const orgId = organization.organizationId;
const testBatman = await createTestUser(batmanAppAdmin, orgId);
const task = await TasksService.createTask(
testBatman,
user,
{
carNumber: 0,
projectNumber: 0,
Expand All @@ -432,7 +431,7 @@ export const createTestTask = async (user: User, organization?: Organization) =>
new Date(),
TaskPriority.High,
TaskStatus.IN_PROGRESS,
[testBatman.userId],
[user.userId],
organization
);

Expand Down

0 comments on commit ca0fc03

Please sign in to comment.