Skip to content

Commit

Permalink
fixup: missing bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTugarev committed Nov 8, 2023
1 parent ef59446 commit e70205e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/server/src/api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ export class API {
bind(TeamsServiceAPI).toSelf().inSingletonScope();
bind(WorkspaceServiceAPI).toSelf().inSingletonScope();
bind(OrganizationServiceAPI).toSelf().inSingletonScope();
bind(AuthProviderServiceAPI).toSelf().inSingletonScope();
bind(StatsServiceAPI).toSelf().inSingletonScope();
bind(API).toSelf().inSingletonScope();
}
Expand Down
2 changes: 2 additions & 0 deletions components/server/src/api/teams.spec.db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { Redis } from "ioredis";
import { UserService } from "../user/user-service";
import { Config } from "../config";
import { OrganizationService } from "../orgs/organization-service";
import { AuthProviderService } from "../auth/auth-provider-service";

const expect = chai.expect;

Expand All @@ -47,6 +48,7 @@ export class APITeamsServiceSpec {
this.container.bind(Config).toConstantValue({} as Config);
this.container.bind(Redis).toConstantValue({} as Redis);
this.container.bind(UserService).toConstantValue({} as UserService);
this.container.bind(AuthProviderService).toConstantValue({} as AuthProviderService);

// Clean-up database
const typeorm = testContainer.get<TypeORM>(TypeORM);
Expand Down

0 comments on commit e70205e

Please sign in to comment.