Skip to content

Commit 9a49d14

Browse files
committed
test: update config patch schema fixture
1 parent 0f66ad4 commit 9a49d14

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/cli/config-cli.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,10 +1597,8 @@ describe("config cli", () => {
15971597
fs.writeFileSync(
15981598
pathname,
15991599
JSON.stringify({
1600-
channels: {
1601-
discord: {
1602-
typo: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" },
1603-
},
1600+
gateway: {
1601+
typo: { source: "env", provider: "default", id: "DISCORD_BOT_TOKEN" },
16041602
},
16051603
}),
16061604
"utf8",
@@ -1618,7 +1616,7 @@ describe("config cli", () => {
16181616
expect(mockError).toHaveBeenCalledWith(
16191617
expect.stringContaining("Dry run failed: config schema validation failed."),
16201618
);
1621-
expect(mockError).toHaveBeenCalledWith(expect.stringContaining("channels.discord"));
1619+
expect(mockError).toHaveBeenCalledWith(expect.stringContaining("gateway"));
16221620
expect(mockError).toHaveBeenCalledWith(expect.stringContaining('"typo"'));
16231621
});
16241622

0 commit comments

Comments
 (0)