Skip to content

Commit

Permalink
check naming in team-management of everything below new-user
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Dec 23, 2024
1 parent 710fbc5 commit 67cc87a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app/team-management/okr-champion.pipe.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('OkrChampionPipe', () => {
instant: () => 'Ja',
} as any;

it('create an instance', () => {
it('should create an instance', () => {
const pipe = new OkrChampionPipe(translateMock);
expect(pipe).toBeTruthy();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ describe('ShowEditRoleComponent', () => {
expect(component).toBeTruthy();
});

it('saveIsAdmin should set edit to false', () => {
it('should set edit to false using saveIsAdmin', () => {
component.edit = true;
component.saveIsAdmin(true);
expect(component.edit).toBeFalsy();
});

it('setEditAsync should set edit to given value', fakeAsync(() => {
it('should set edit to given value using setEditAsync', fakeAsync(() => {
component.edit = false;
const mouseEvent = {
stopPropagation: () => undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ describe('TeamManagementMobileFilterComponent', () => {
expect(component.teams).toStrictEqual(teamList);
}));

it('navigate should navigate to team ', () => {
it('should navigate to team ', () => {
component.navigate(team1);
expect(routerMock.navigateByUrl).toBeCalledTimes(1);
expect(routerMock.navigateByUrl).toBeCalledWith(getRouteToTeam(team1.id));
});

it('navigate should navigate to all teams ', () => {
it('should navigate to all teams ', () => {
component.navigate(component.ALL_TEAMS);
expect(routerMock.navigateByUrl).toBeCalledTimes(1);
expect(routerMock.navigateByUrl).toBeCalledWith(getRouteToAllTeams());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ describe('TeamRoleDropdownComponent', () => {
expect(component).toBeTruthy();
});

it('component onInit should create formControl', () => {
it('should create formControl using onInit', () => {
component.isAdmin = false;
component.ngOnInit();
expect(JSON.stringify(component.adminControl)).toStrictEqual(
JSON.stringify(new FormControl(component.isAdmin, [Validators.required])),
);
});

it('triggerIsAdminChange should submit next value', (done) => {
it('should submit next value using triggerIsAdminChange', (done) => {
component.isAdminChange.pipe(takeLast(1)).subscribe((val) => {
expect(val).toBeFalsy();
done();
Expand Down

0 comments on commit 67cc87a

Please sign in to comment.