Skip to content

Commit

Permalink
fix:failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
divinecharlotte committed Dec 6, 2024
1 parent f22a56c commit 40e941d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/drec-api/test/user.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { OrganizationService } from '../src/pods/organization/organization.servi
import { seed } from './seed';
import { expect } from 'chai';
import { DeviceService } from '../src/pods/device/device.service';
import { CreateUserORGDTO } from '../src/pods/user/dto/create-user.dto';
import { CreateUserOrgDTO } from '../src/pods/user/dto/create-user.dto';
import { UserRegistrationData } from '../src/models';
import { UpdateUserProfileDTO } from '../src/pods/user/dto/update-user-profile.dto';
import { UpdateOwnUserSettingsDTO } from '../src/pods/user/dto/update-own-user-settings.dto';
Expand Down Expand Up @@ -87,7 +87,7 @@ describe('Users tests', () => {
password: 'Password123',
};
await loginUser(loggedUser);
const partialUser: CreateUserORGDTO = {
const partialUser: CreateUserOrgDTO = {
firstName: 'test',
lastName: 'user2021',
email: 'test-1-2021@mailinator.com',
Expand All @@ -98,7 +98,7 @@ describe('Users tests', () => {
});

it('should register a new user', async () => {
const partialUser: CreateUserORGDTO = {
const partialUser: CreateUserOrgDTO = {
firstName: 'test',
lastName: 'user2021',
email: 'test-2-2021@mailinator.com',
Expand Down Expand Up @@ -145,7 +145,7 @@ describe('Users tests', () => {
const postAdminUser = async (
url: string,
status: HttpStatus,
body: CreateUserORGDTO,
body: CreateUserOrgDTO,
): Promise<any> =>
await request(app.getHttpServer())
.post(`/admin/users/${url}`)
Expand All @@ -158,7 +158,7 @@ describe('Users tests', () => {
const postUser = async (
url: string,
status: HttpStatus,
body: CreateUserORGDTO,
body: CreateUserOrgDTO,
): Promise<any> =>
await request(app.getHttpServer())
.post(`/user/${url}`)
Expand Down

0 comments on commit 40e941d

Please sign in to comment.