mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 19:47:54 +00:00
test: tighten gateway response assertions
This commit is contained in:
@@ -94,7 +94,7 @@ describe("completion-cli write-state", () => {
|
||||
await program.parseAsync(["completion", "--write-state"], { from: "user" });
|
||||
|
||||
const cacheDir = path.join(stateDir, "completions");
|
||||
expect((await fs.readdir(cacheDir)).sort()).toEqual([
|
||||
expect((await fs.readdir(cacheDir)).toSorted()).toEqual([
|
||||
"openclaw.bash",
|
||||
"openclaw.fish",
|
||||
"openclaw.ps1",
|
||||
@@ -137,7 +137,7 @@ describe("completion-cli write-state", () => {
|
||||
[program, "qa", process.argv, { purpose: "completion" }],
|
||||
]);
|
||||
expect(registerPluginCliCommandsFromValidatedConfigMock).not.toHaveBeenCalled();
|
||||
expect((await fs.readdir(path.join(stateDir, "completions"))).sort()).toEqual([
|
||||
expect((await fs.readdir(path.join(stateDir, "completions"))).toSorted()).toEqual([
|
||||
"openclaw.bash",
|
||||
"openclaw.fish",
|
||||
"openclaw.ps1",
|
||||
|
||||
Reference in New Issue
Block a user