Skip to content

Commit

Permalink
fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Dec 24, 2024
1 parent dfc9443 commit dbfc0f6
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 15 deletions.
Empty file.
Empty file.
Empty file.
14 changes: 5 additions & 9 deletions frontend/src/app/services/objective-menu-actions.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ describe('ObjectiveMenuActionsService', () => {
specificMenuEntriesSpy = jest.spyOn(service as any, 'getSpecificMenuEntries');
});

afterEach(() => {
expect(specificMenuEntriesSpy)
.toHaveBeenCalledTimes(1);
});

it('should be created', () => {
expect(service)
.toBeTruthy();
});

describe('getMenu', () => {
afterEach(() => {
expect(specificMenuEntriesSpy)
.toHaveBeenCalledTimes(1);
});

it('should return default and specific menu entries for an ongoing objective', () => {
const spyOn = jest.spyOn(service as any, 'getOngoingMenuActions');

Expand Down Expand Up @@ -78,10 +78,6 @@ describe('ObjectiveMenuActionsService', () => {
expect(spyOn)
.toHaveBeenCalledTimes(1);
});
afterEach(() => {
expect(specificMenuEntriesSpy)
.toHaveBeenCalledTimes(1);
});
});

describe('get correct release action', () => {
Expand Down
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions frontend/src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { NgModule } from '@angular/core';
import { CommonModule, NgOptimizedImage } from '@angular/common';
import { ExampleDialogComponent } from './dialog/example-dialog/example-dialog.component';
import { ObjectiveFormComponent } from './dialog/objective-dialog/objective-form.component';
import { ConfirmDialogComponent } from './dialog/confirm-dialog/confirm-dialog.component';
import { ScoringComponent } from './custom/scoring/scoring.component';
Expand Down Expand Up @@ -28,7 +27,6 @@ import { MatTooltip } from '@angular/material/tooltip';

@NgModule({
declarations: [
ExampleDialogComponent,
ObjectiveFormComponent,
ConfirmDialogComponent,
UnitTransformationPipe,
Expand Down Expand Up @@ -62,7 +60,6 @@ import { MatTooltip } from '@angular/material/tooltip';
MatTooltip
],
exports: [
ExampleDialogComponent,
ObjectiveFormComponent,
ConfirmDialogComponent,
ScoringComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ describe('MemberListTableComponent', () => {
tick();

expect(teamServiceMock.removeUserFromTeam)
.toHaveBeenCalledWith(1);
.toHaveBeenCalledTimes(1);
expect(teamServiceMock.removeUserFromTeam)
.toHaveBeenCalledWith(entry.id, component.selectedTeam$.value);
expect(userServiceMock.reloadUsers)
.toHaveBeenCalledWith(1);
.toHaveBeenCalledTimes(1);
expect(userServiceMock.reloadCurrentUser)
.toHaveBeenCalledWith(1);
.toHaveBeenCalledTimes(1);
}));

it('removeMemberFromTeam should not call removeUserFromTeam and reloadUsers if not confirmed', fakeAsync(() => {
Expand Down

0 comments on commit dbfc0f6

Please sign in to comment.