mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:40:44 +00:00
refactor: hide browser test and error internals
This commit is contained in:
@@ -29,12 +29,6 @@ export class BrowserValidationError extends BrowserError {
|
||||
}
|
||||
}
|
||||
|
||||
export class BrowserConfigurationError extends BrowserError {
|
||||
constructor(message: string, options?: ErrorOptions) {
|
||||
super(message, 400, options);
|
||||
}
|
||||
}
|
||||
|
||||
export class BrowserTargetAmbiguousError extends BrowserError {
|
||||
constructor(message = "ambiguous target id prefix", options?: ErrorOptions) {
|
||||
super(message, 409, options);
|
||||
|
||||
@@ -55,7 +55,7 @@ export function makeState(
|
||||
};
|
||||
}
|
||||
|
||||
export function makeUnexpectedFetchMock() {
|
||||
function makeUnexpectedFetchMock() {
|
||||
return vi.fn(async () => {
|
||||
throw new Error("unexpected fetch");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user