Skip to content

Commit 8d5433c

Browse files
authored
fix(screenshotter) validateScreeshotOptions typo (#1509)
There is a type in the function name
1 parent 4f89e40 commit 8d5433c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/screenshotter.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class Screenshotter {
7979
}
8080

8181
async screenshotPage(options: types.ScreenshotOptions = {}): Promise<platform.BufferType> {
82-
const format = validateScreeshotOptions(options);
82+
const format = validateScreenshotOptions(options);
8383
return this._queue.postTask(async () => {
8484
const { viewportSize, originalViewportSize } = await this._originalViewportSize();
8585

@@ -103,7 +103,7 @@ export class Screenshotter {
103103
}
104104

105105
async screenshotElement(handle: dom.ElementHandle, options: types.ElementScreenshotOptions = {}): Promise<platform.BufferType> {
106-
const format = validateScreeshotOptions(options);
106+
const format = validateScreenshotOptions(options);
107107
return this._queue.postTask(async () => {
108108
const { viewportSize, originalViewportSize } = await this._originalViewportSize();
109109

@@ -188,7 +188,7 @@ function trimClipToSize(clip: types.Rect, size: types.Size): types.Rect {
188188
return result;
189189
}
190190

191-
function validateScreeshotOptions(options: types.ScreenshotOptions): 'png' | 'jpeg' {
191+
function validateScreenshotOptions(options: types.ScreenshotOptions): 'png' | 'jpeg' {
192192
let format: 'png' | 'jpeg' | null = null;
193193
// options.type takes precedence over inferring the type from options.path
194194
// because it may be a 0-length file with no extension created beforehand (i.e. as a temp file).

0 commit comments

Comments
 (0)