Skip to content

Commit fdf5b04

Browse files
committed
.
1 parent 8c5ee16 commit fdf5b04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/gulp/tasks/screenshots.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function getLocalScreenshotFiles(dir: string): string[] {
7676
function uploadScreenshots(prNumber?: string, mode?: 'test' | 'diff') {
7777
let bucket = openScreenshotsBucket();
7878

79-
let promises: Promise<void>[] = [];
79+
let promises: admin.Promise<void>[] = [];
8080
let localDir = mode == 'diff' ? path.join(SCREENSHOT_DIR, 'diff') : SCREENSHOT_DIR;
8181
getLocalScreenshotFiles(localDir).forEach((file: string) => {
8282
let fileName = path.join(localDir, file);
@@ -90,12 +90,12 @@ function uploadScreenshots(prNumber?: string, mode?: 'test' | 'diff') {
9090
/** Download golds screenshots. */
9191
function downloadAllGoldsAndCompare(
9292
files: any[], database: admin.database.Database,
93-
prNumber: string): Promise<boolean> {
93+
prNumber: string) {
9494

9595
mkdirp(path.join(SCREENSHOT_DIR, `golds`));
9696
mkdirp(path.join(SCREENSHOT_DIR, `diff`));
9797

98-
return Promise.all(files.map((file: any) => {
98+
return admin.Promise.all(files.map((file: any) => {
9999
return downloadGold(file).then(() => diffScreenshot(file.name, database, prNumber));
100100
})).then((results: boolean[]) => results.every((value: boolean) => value == true));
101101
}

0 commit comments

Comments
 (0)