Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek committed Dec 16, 2024
1 parent 969c030 commit 5474c7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 @@ -39,6 +39,7 @@ import { InstallationService } from "../auth/installation-service";
import { RateLimitter } from "../rate-limitter";
import { Authorizer } from "../authorization/authorizer";
import { AuditLogService } from "../audit/AuditLogService";
import { EntitlementService, EntitlementServiceImpl } from "../billing/entitlement-service";

const expect = chai.expect;

Expand Down Expand Up @@ -75,6 +76,7 @@ export class APITeamsServiceSpec {
this.container.bind(RateLimitter).toConstantValue({} as RateLimitter);
this.container.bind(Authorizer).toConstantValue({} as Authorizer);
this.container.bind(AuditLogService).toConstantValue({} as AuditLogService);
this.container.bind(EntitlementService).toConstantValue({} as EntitlementServiceImpl);

// Clean-up database
const typeorm = testContainer.get<TypeORM>(TypeORM);
Expand Down
2 changes: 1 addition & 1 deletion components/server/src/orgs/organization-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ export class OrganizationService {
if (settings.roleRestrictions) {
result.roleRestrictions = settings.roleRestrictions;
}
if (typeof settings.maxParallelRunningWorkspaces === "number") {
if (settings.maxParallelRunningWorkspaces) {
result.maxParallelRunningWorkspaces = settings.maxParallelRunningWorkspaces;
}

Expand Down

0 comments on commit 5474c7d

Please sign in to comment.