test: certify bootstrap approval status · openclaw/openclaw@b60f785
shakkernerd
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1039,13 +1039,12 @@ describe("device pairing tokens", () => {
|
1039 | 1039 | baseDir, |
1040 | 1040 | ); |
1041 | 1041 | |
1042 | | -await expect( |
1043 | | -approveBootstrapDevicePairing( |
1044 | | -request.request.requestId, |
1045 | | -PAIRING_SETUP_BOOTSTRAP_PROFILE, |
1046 | | -baseDir, |
1047 | | -), |
1048 | | -).resolves.toEqual(expect.objectContaining({ status: "approved" })); |
| 1042 | +const approved = await approveBootstrapDevicePairing( |
| 1043 | +request.request.requestId, |
| 1044 | +PAIRING_SETUP_BOOTSTRAP_PROFILE, |
| 1045 | +baseDir, |
| 1046 | +); |
| 1047 | +expectRecordFields(approved, "approved result", { status: "approved" }); |
1049 | 1048 | |
1050 | 1049 | const paired = await getPairedDevice("bootstrap-device-operator-default", baseDir); |
1051 | 1050 | const operatorToken = requireToken(paired?.tokens?.operator?.token); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。