Try fixing E2E tests more
This commit is contained in:
parent
387e7afd58
commit
f6dccc4492
6 changed files with 33 additions and 30 deletions
|
|
@ -12,7 +12,7 @@ import type { TextWithCursors } from "reconcile-text";
|
|||
import type { ServerConfig, ServerConfigData } from "../services/server-config";
|
||||
|
||||
class MockServerConfig implements Pick<ServerConfig, "getConfig"> {
|
||||
public getConfig(): ServerConfigData {
|
||||
public async getConfig(): Promise<ServerConfigData> {
|
||||
return {
|
||||
mergeableFileExtensions: ["md", "txt"],
|
||||
supportedApiVersion: 1,
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ export class FileOperations {
|
|||
if (
|
||||
!isFileTypeMergable(
|
||||
path,
|
||||
this.serverConfig.getConfig().mergeableFileExtensions
|
||||
(await this.serverConfig.getConfig()).mergeableFileExtensions
|
||||
) ||
|
||||
isBinary(expectedContent) ||
|
||||
isBinary(newContent)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue