Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
virgilchiriac committed Jan 20, 2025
1 parent a364574 commit 7a4d942
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class DeletionRequestUc implements IEventHandler<DataDeletedEvent> {
'course',
'dashboard',
'file',
//'fileRecords',
'fileRecords',
'lessons',
'news',
'pseudonyms',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BaseEntityWithTimestamps } from '@shared/domain/entity/base.entity';
import { EntityId } from '@shared/domain/types';
import { ObjectId } from 'bson';
import {Entity, Property, Index, Unique} from '@mikro-orm/core';
import { Entity, Property, Index, Unique } from '@mikro-orm/core';
import { DomainOperationReport, DomainDeletionReport } from '../../domain/interface';
import { DomainName } from '../../domain/types';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe(DeletionRequestScope.name, () => {
});
});

describe('byStatus', () => {
describe('byStatusAndDate', () => {
const setup = () => {
const fifteenMinutesAgo = new Date(Date.now() - 15 * 60 * 1000); // 15 minutes ago
const expectedQuery = {
Expand All @@ -55,15 +55,15 @@ describe(DeletionRequestScope.name, () => {
it('should add query', () => {
const { expectedQuery, fifteenMinutesAgo } = setup();

const result = scope.byStatus(fifteenMinutesAgo);
const result = scope.byStatusAndDate(StatusModel.FAILED, fifteenMinutesAgo);

expect(result).toBeInstanceOf(DeletionRequestScope);
expect(scope.query).toEqual(expectedQuery);
});
});
});

describe('byStatusPending', () => {
describe('byStatusAndDate for Pending', () => {
const setup = () => {
const expectedQuery = { status: [StatusModel.PENDING] };

Expand All @@ -74,7 +74,7 @@ describe(DeletionRequestScope.name, () => {
it('should add query', () => {
const { expectedQuery } = setup();

const result = scope.byStatusPending();
const result = scope.byStatusAndDate(StatusModel.PENDING);

expect(result).toBeInstanceOf(DeletionRequestScope);
expect(scope.query).toEqual(expectedQuery);
Expand Down

0 comments on commit 7a4d942

Please sign in to comment.