Skip to content

Commit

Permalink
fix test and import
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Nov 23, 2023
1 parent 1867c6a commit 633e647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { MongoMemoryDatabaseModule } from '@infra/database';
import KeycloakAdminClient from '@keycloak/keycloak-admin-client-cjs/keycloak-admin-client-cjs-index';
import AuthenticationExecutionExportRepresentation from '@keycloak/keycloak-admin-client/lib/defs/authenticationExecutionExportRepresentation';
import AuthenticationFlowRepresentation from '@keycloak/keycloak-admin-client/lib/defs/authenticationFlowRepresentation';
import { LegacySystemService } from '@modules/system/service/legacy-system.service';
import { LegacySystemService } from '@modules/system';
import { ConfigModule } from '@nestjs/config';
import { Test, TestingModule } from '@nestjs/testing';
import { LegacySystemRepo } from '@shared/repo/system/system.repo';
import { LegacySystemRepo } from '@shared/repo';
import { systemEntityFactory } from '@shared/testing/factory';
import { LoggerModule } from '@src/core/logger';
import { v1 } from 'uuid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('System (API)', () => {
it('should return a list of all systems', async () => {
const { system1, system2, system2OauthConfig } = await setup();

const response: Response = await testApiClient.get(`/systems/public`).expect(200);
const response: Response = await testApiClient.get(`/public`).expect(200);

expect(response.body).toEqual<PublicSystemListResponse>({
data: [
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('System (API)', () => {
it('should return the system', async () => {
const { system1 } = await setup();

const response: Response = await testApiClient.get(`/systems/public/${system1.id}`).expect(200);
const response: Response = await testApiClient.get(`/public/${system1.id}`).expect(200);

expect(response.body).toEqual<PublicSystemResponse>({
id: system1.id,
Expand Down

0 comments on commit 633e647

Please sign in to comment.