mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 12:11:23 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -54,11 +54,11 @@ function connectReq(
|
||||
);
|
||||
}
|
||||
|
||||
test("accepts moltbot-ios as a valid gateway client id", async () => {
|
||||
test("accepts openclaw-ios as a valid gateway client id", async () => {
|
||||
const ws = new WebSocket(`ws://127.0.0.1:${port}`);
|
||||
await new Promise<void>((resolve) => ws.once("open", resolve));
|
||||
|
||||
const res = await connectReq(ws, { clientId: "moltbot-ios", platform: "ios" });
|
||||
const res = await connectReq(ws, { clientId: "openclaw-ios", platform: "ios" });
|
||||
// We don't care if auth fails here; we only care that schema validation accepts the client id.
|
||||
// A schema rejection would close the socket before sending a response.
|
||||
if (!res.ok) {
|
||||
@@ -73,11 +73,11 @@ test("accepts moltbot-ios as a valid gateway client id", async () => {
|
||||
ws.close();
|
||||
});
|
||||
|
||||
test("accepts moltbot-android as a valid gateway client id", async () => {
|
||||
test("accepts openclaw-android as a valid gateway client id", async () => {
|
||||
const ws = new WebSocket(`ws://127.0.0.1:${port}`);
|
||||
await new Promise<void>((resolve) => ws.once("open", resolve));
|
||||
|
||||
const res = await connectReq(ws, { clientId: "moltbot-android", platform: "android" });
|
||||
const res = await connectReq(ws, { clientId: "openclaw-android", platform: "android" });
|
||||
// We don't care if auth fails here; we only care that schema validation accepts the client id.
|
||||
// A schema rejection would close the socket before sending a response.
|
||||
if (!res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user