Skip to content

Commit

Permalink
fix: linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Karol Sójko committed Oct 10, 2022
1 parent 158ca6a commit e2e7605
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('WorkspaceApiService', () => {
it('should invite to a workspace', async () => {
const response = await createService().inviteToWorkspace({
workspaceUuid: 'w-1-2-3',
inviteeEmail: 'test@test.te'
inviteeEmail: 'test@test.te',
})

expect(response).toEqual({
Expand All @@ -95,7 +95,7 @@ describe('WorkspaceApiService', () => {
})
expect(workspaceServer.inviteToWorkspace).toHaveBeenCalledWith({
workspaceUuid: 'w-1-2-3',
inviteeEmail: 'test@test.te'
inviteeEmail: 'test@test.te',
})
})

Expand All @@ -109,7 +109,7 @@ describe('WorkspaceApiService', () => {
try {
await service.inviteToWorkspace({
workspaceUuid: 'w-1-2-3',
inviteeEmail: 'test@test.te'
inviteeEmail: 'test@test.te',
})
} catch (caughtError) {
error = caughtError
Expand All @@ -127,7 +127,7 @@ describe('WorkspaceApiService', () => {
try {
await createService().inviteToWorkspace({
workspaceUuid: 'w-1-2-3',
inviteeEmail: 'test@test.te'
inviteeEmail: 'test@test.te',
})
} catch (caughtError) {
error = caughtError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class WorkspaceApiService implements WorkspaceApiServiceInterface {
}

async createWorkspace(dto: {
workspaceType: WorkspaceType,
workspaceType: WorkspaceType
encryptedWorkspaceKey?: string
encryptedPrivateKey?: string
publicKey?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ export interface WorkspaceApiServiceInterface {
publicKey?: string
workspaceName?: string
}): Promise<WorkspaceCreationResponse>
inviteToWorkspace(dto: {
inviteeEmail: string
workspaceUuid: Uuid
}): Promise<WorkspaceInvitationResponse>
inviteToWorkspace(dto: { inviteeEmail: string; workspaceUuid: Uuid }): Promise<WorkspaceInvitationResponse>
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Uuid } from "@standardnotes/common"
import { Uuid } from '@standardnotes/common'

export type WorkspaceInvitationRequestParams = {
workspaceUuid: Uuid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,5 @@ export interface WorkspaceClientInterface {
publicKey?: string
workspaceName?: string
}): Promise<{ uuid: string } | null>
inviteToWorkspace(dto: {
inviteeEmail: string
workspaceUuid: Uuid
}): Promise<{ uuid: string } | null>
inviteToWorkspace(dto: { inviteeEmail: string; workspaceUuid: Uuid }): Promise<{ uuid: string } | null>
}
2 changes: 1 addition & 1 deletion packages/services/src/Domain/Workspace/WorkspaceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class WorkspaceManager extends AbstractService implements WorkspaceClient
}

async createWorkspace(dto: {
workspaceType: WorkspaceType,
workspaceType: WorkspaceType
encryptedWorkspaceKey?: string
encryptedPrivateKey?: string
publicKey?: string
Expand Down

0 comments on commit e2e7605

Please sign in to comment.