-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b17d6f3
commit 848d05d
Showing
22 changed files
with
301 additions
and
51 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
frontend/src/__mocks__/components/app-footer.component.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'app-footer', | ||
template: '', | ||
}) | ||
export class AppFooterComponentMock {} |
8 changes: 8 additions & 0 deletions
8
frontend/src/__mocks__/components/app-header.component.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
standalone: true, | ||
selector: 'app-header', | ||
template: '', | ||
}) | ||
export class AppHeaderComponentMock {} |
2 changes: 1 addition & 1 deletion
2
frontend/src/__mocks__/components/invitations.component.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ standalone: true, selector: 'app-invitation', template: '' }) | ||
export class InvitationStubComponent {} | ||
export class InvitationComponentMock {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
import { of } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class AuthServiceMock { | ||
logoutByUser() {} | ||
logout() {} | ||
alertMessageLogout() {} | ||
setTokens() {} | ||
setAccessToken() {} | ||
|
||
login() { | ||
return of({}); | ||
} | ||
|
||
register() { | ||
return of({}); | ||
} | ||
|
||
invitation() { | ||
return of({}); | ||
} | ||
|
||
refreshToken() { | ||
return of({}); | ||
} | ||
|
||
getAccessToken() { | ||
return {}; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
frontend/src/__mocks__/services/dialog-confirmation.service.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class DialogConfirmationServiceMock { | ||
addConfirmation() {} | ||
} |
17 changes: 17 additions & 0 deletions
17
frontend/src/__mocks__/services/invitation.service.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { of } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class InvitationServiceMock { | ||
getInvitationForUser() { | ||
return of({}); | ||
} | ||
postInvitations() { | ||
return of({}); | ||
} | ||
deleteInvitation() { | ||
return of({}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
import { of } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class ProjectServiceMock { | ||
getProject() { | ||
return of({}); | ||
} | ||
getTasksForProject() { | ||
return of({}); | ||
} | ||
createProjectForUser() { | ||
return of({}); | ||
} | ||
editProjectForUser() { | ||
return of({}); | ||
} | ||
deleteProject() { | ||
return of({}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Injectable } from '@angular/core'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class RouterServiceMock { | ||
navigate() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { of } from 'rxjs'; | ||
|
||
@Injectable({ | ||
providedIn: 'root', | ||
}) | ||
export class TaskServiceMock { | ||
getTask() { | ||
return of({}); | ||
} | ||
createTask() { | ||
return of({}); | ||
} | ||
editTask() { | ||
return of({}); | ||
} | ||
deleteTask() { | ||
return of({}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 16 additions & 4 deletions
20
...hboard/components/dashboard-dialog-invites/dashboard-dialog-invitations.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 34 additions & 6 deletions
40
frontend/src/app/features/dashboard/dashboard.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 16 additions & 4 deletions
20
frontend/src/app/features/invitation/invitation.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.