Fix eslint warnings (#456)

This commit is contained in:
Jordi Bunster 2021-03-08 10:29:41 -08:00 committed by GitHub
parent ee919a68a5
commit 1d2995ef32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ export function generateDatabaseName(baseName = "db", length = 1): string {
return `${baseName}${crypto.randomBytes(length).toString("hex")}-${Date.now()}`;
}
export async function createDatabase(frame: Frame) {
export async function createDatabase(frame: Frame): Promise<string> {
const dbId = generateDatabaseName();
const collectionId = generateUniqueName("col");
const shardKey = "partitionKey";
@ -70,7 +70,7 @@ export async function createDatabase(frame: Frame) {
return dbId;
}
export async function onClickSaveButton(frame: Frame) {
export async function onClickSaveButton(frame: Frame): Promise<void> {
await frame.waitFor(`button[data-test="Save"]`), { visible: true };
await frame.waitFor(LOADING_STATE_DELAY);
await frame.click(`button[data-test="Save"]`);