6b153192a3
After migrating to eslint some errors were disabled to make it easier to migrate. This enables all the lint rules and treats all warnings as a build failure. Similarly, CI won't automatically try to fix mistakes. Change-Id: I80f808af026fc51bed90421b3b24737994a52094
29 lines
827 B
TypeScript
29 lines
827 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import { ProjectMemberCursor, ProjectMembersApi, ProjectMembersPage } from '@/types/projectMembers';
|
|
|
|
/**
|
|
* Mock for ProjectMembersApi
|
|
*/
|
|
export class ProjectMembersApiMock implements ProjectMembersApi {
|
|
public cursor: ProjectMemberCursor;
|
|
public page: ProjectMembersPage;
|
|
|
|
public setMockPage(page: ProjectMembersPage): void {
|
|
this.page = page;
|
|
}
|
|
|
|
add(_projectId: string, _emails: string[]): Promise<void> {
|
|
throw new Error('not implemented');
|
|
}
|
|
|
|
delete(_projectId: string, _emails: string[]): Promise<void> {
|
|
throw new Error('not implemented');
|
|
}
|
|
|
|
get(_projectId: string, _cursor: ProjectMemberCursor): Promise<ProjectMembersPage> {
|
|
return Promise.resolve(this.page);
|
|
}
|
|
}
|