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
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import { BucketCursor, BucketPage, BucketsApi } from '@/types/buckets';
|
|
|
|
/**
|
|
* Mock for BucketsApi
|
|
*/
|
|
export class BucketsMock implements BucketsApi {
|
|
get(_projectId: string, _before: Date, _cursor: BucketCursor): Promise<BucketPage> {
|
|
return Promise.resolve(new BucketPage());
|
|
}
|
|
|
|
getAllBucketNames(_projectId: string): Promise<string[]> {
|
|
return Promise.resolve(['test']);
|
|
}
|
|
}
|