mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 23:32:54 +00:00
* refactor: extract gateway client package * chore: drop generated gateway package artifacts * refactor: move gateway protocol package * refactor: remove old gateway protocol tree * test: keep auth compat split in run mode * test: expose gateway wrapper options for internals * fix: watch moved gateway package sources * test: normalize slash command import guard * chore: teach knip gateway package entries * ci: route gateway client package checks * fix: reuse ipaddr for gateway client hosts * fix: sync gateway protocol usage schema
21 lines
577 B
TypeScript
21 lines
577 B
TypeScript
import { Compile } from "typebox/compile";
|
|
import { describe, expect, it } from "vitest";
|
|
import { PushTestResultSchema } from "./schema/push.js";
|
|
|
|
describe("gateway protocol push schema", () => {
|
|
const validatePushTestResult = Compile(PushTestResultSchema);
|
|
|
|
it("accepts push.test results with a transport", () => {
|
|
expect(
|
|
validatePushTestResult.Check({
|
|
ok: true,
|
|
status: 200,
|
|
tokenSuffix: "abcd1234",
|
|
topic: "ai.openclaw.ios",
|
|
environment: "production",
|
|
transport: "relay",
|
|
}),
|
|
).toBe(true);
|
|
});
|
|
});
|