mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 02:22:43 +00:00
test: narrow pairing setup helper token type
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
|
import type { SecretInput } from "../config/types.secrets.js";
|
||||||
import { encodePairingSetupCode, resolvePairingSetupFromConfig } from "./setup-code.js";
|
import { encodePairingSetupCode, resolvePairingSetupFromConfig } from "./setup-code.js";
|
||||||
|
|
||||||
describe("pairing setup code", () => {
|
describe("pairing setup code", () => {
|
||||||
@@ -204,7 +205,7 @@ describe("pairing setup code", () => {
|
|||||||
).rejects.toThrow(/MISSING_GW_TOKEN/i);
|
).rejects.toThrow(/MISSING_GW_TOKEN/i);
|
||||||
});
|
});
|
||||||
|
|
||||||
async function resolveInferredModeWithPasswordEnv(token: unknown) {
|
async function resolveInferredModeWithPasswordEnv(token: SecretInput) {
|
||||||
return await resolvePairingSetupFromConfig(
|
return await resolvePairingSetupFromConfig(
|
||||||
{
|
{
|
||||||
gateway: {
|
gateway: {
|
||||||
|
|||||||
Reference in New Issue
Block a user