mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: smaller codex fixes (#36374)
This commit is contained in:
parent
c0da193660
commit
d3970a22d1
@ -135,7 +135,7 @@ class SnapshotHelper {
|
||||
this.locator = locator;
|
||||
|
||||
this.updateSnapshots = testInfo.config.updateSnapshots;
|
||||
this.mimeType = mime.getType(path.basename(this.expectedPath)) ?? 'application/octet-string';
|
||||
this.mimeType = mime.getType(path.basename(this.expectedPath)) ?? 'application/octet-stream';
|
||||
this.comparator = getComparator(this.mimeType);
|
||||
|
||||
this.testInfo = testInfo;
|
||||
|
||||
@ -142,7 +142,7 @@ export class TestServerDispatcher implements TestServerInterface {
|
||||
process.stdout.columns = params.cols;
|
||||
process.stdout.rows = params.rows;
|
||||
process.stderr.columns = params.cols;
|
||||
process.stderr.columns = params.rows;
|
||||
process.stderr.rows = params.rows;
|
||||
}
|
||||
|
||||
async checkBrowsers(): Promise<{ hasBrowsers: boolean; }> {
|
||||
|
||||
@ -147,7 +147,7 @@ export function createTitleMatcher(patterns: RegExp | RegExp[]): Matcher {
|
||||
};
|
||||
}
|
||||
|
||||
export function mergeObjects<A extends object, B extends object, C extends object>(a: A | undefined | void, b: B | undefined | void, c: B | undefined | void): A & B & C {
|
||||
export function mergeObjects<A extends object, B extends object, C extends object>(a: A | undefined | void, b: B | undefined | void, c: C | undefined | void): A & B & C {
|
||||
const result = { ...a } as any;
|
||||
for (const x of [b, c].filter(Boolean)) {
|
||||
for (const [name, value] of Object.entries(x as any)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user