Skip to content

Commit

Permalink
fix: lint api and test
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed May 16, 2024
1 parent cc3f5d0 commit 975f24e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/server/api/test/helpers/mocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const createMockUser = (user?: Partial<User>): User => {
password: user?.password
? bcrypt.hashSync(user.password, 10)
: faker.internet.password(),
status: user?.status ?? faker.helpers.enumValue(UserStatus),
status: user?.status ?? faker.helpers.enumValue(UserStatus),
platformRole: user?.platformRole ?? faker.helpers.enumValue(PlatformRole),
verified: user?.verified ?? faker.datatype.boolean(),
externalId: user?.externalId,
Expand Down Expand Up @@ -181,6 +181,7 @@ export const createMockPlatform = (platform?: Partial<Platform>): Platform => {
smtpPort: platform?.smtpPort ?? faker.internet.port(),
smtpUser: platform?.smtpUser ?? faker.internet.userName(),
smtpPassword: platform?.smtpPassword ?? faker.internet.password(),
flowIssuesEnabled: platform?.flowIssuesEnabled ?? faker.datatype.boolean(),
smtpUseSSL: platform?.smtpUseSSL ?? faker.datatype.boolean(),
smtpSenderEmail: platform?.smtpSenderEmail ?? faker.internet.email(),
privacyPolicyUrl: platform?.privacyPolicyUrl ?? faker.internet.url(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import { CommonModule } from '@angular/common';
imports: [CommonModule, UiCommonModule, ApDatePipe],
})
export class IssuesTableComponent implements OnInit {

readonly betaNote = 'Note: This feature is in <strong>BETA</strong> and will only be <strong>Free</strong> during the <strong>BETA</strong> period.'
readonly betaNote =
'Note: This feature is in <strong>BETA</strong> and will only be <strong>Free</strong> during the <strong>BETA</strong> period.';
@Input({ required: true })
isFeatureDisabled = true;
@ViewChild(ApPaginatorComponent, { static: true })
Expand All @@ -66,7 +66,7 @@ export class IssuesTableComponent implements OnInit {
private matDialog: MatDialog,
private telemetryService: TelemetryService,
private embeddingService: EmbeddingService
) { }
) {}
ngOnInit(): void {
this.dataSource = new IssuesDataSource(
this.route.queryParams,
Expand Down

0 comments on commit 975f24e

Please sign in to comment.