asser the empty suffix for OPENCLAW_SKIP_ONBOARDING directly

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
jinjim
2026-03-27 16:35:56 +08:00
committed by sallyom
parent ba6407a1ad
commit 06224d5697

View File

@@ -550,7 +550,7 @@ describe("scripts/docker/setup.sh", () => {
const log = await readDockerLog(activeSandbox);
expect(log).toContain("onboard --mode local --no-install-daemon");
const envFile = await readFile(join(activeSandbox.rootDir, ".env"), "utf8");
expect(envFile).toContain("OPENCLAW_SKIP_ONBOARDING=");
expect(envFile).toMatch(/OPENCLAW_SKIP_ONBOARDING=\n/);
});
it("avoids associative arrays so the script remains Bash 3.2-compatible", async () => {