Skip to content

Commit

Permalink
update specs to use the class syntax for quarters
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Oct 17, 2024
1 parent 529fb35 commit b4c351e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { TranslateModule, TranslateService } from '@ngx-translate/core';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { UserService } from '../../services/user.service';
import { KeyResultFormComponent } from '../key-result-form/key-result-form.component';
import { Quarter } from '../../shared/types/model/Quarter';

describe('KeyresultDialogComponent', () => {
let component: KeyresultDialogComponent;
Expand Down Expand Up @@ -55,7 +56,7 @@ describe('KeyresultDialogComponent', () => {
let keyResultObjective: KeyResultObjective = {
id: 2,
state: State.ONGOING,
quarter: { id: 1, label: 'GJ 22/23-Q2', endDate: new Date(), startDate: new Date() },
quarter: new Quarter(1, 'GJ 22/23-Q2', new Date(), new Date()),
};

let fullKeyResultMetric = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const overviewService = {
};

const quarters = [
{ id: 999, label: 'Backlog', startDate: null, endDate: null },
{ ...quarter, id: 2 },
{ ...quarter, id: 5 },
{ ...quarter, id: 7 },
new Quarter(999, 'Backlog', null, null),
new Quarter(2, '23.02.2025', new Date(), new Date()),
new Quarter(5, '23.02.2025', new Date(), new Date()),
new Quarter(7, '23.02.2025', new Date(), new Date()),
];

const quarterService = {
Expand Down

0 comments on commit b4c351e

Please sign in to comment.