Skip to content

Commit

Permalink
fix screenshot directory (#4254)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao authored and mmalerba committed Apr 25, 2017
1 parent 7428c49 commit fb7947f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/gulp/tasks/screenshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function extractScreenshotName(fileName: string) {

function getLocalScreenshotFiles(dir: string): string[] {
return readdirSync(dir)
.filter((fileName: string) => !statSync(path.join(SCREENSHOT_DIR, fileName)).isDirectory())
.filter((fileName: string) => !statSync(path.join(dir, fileName)).isDirectory())
.filter((fileName: string) => fileName.endsWith('.screenshot.png'));
}

Expand Down

0 comments on commit fb7947f

Please sign in to comment.