test(hooks): remove unsafe test assertions

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-12 14:22:05 +09:00
parent 11b3638493
commit 23211159c9
37 changed files with 242 additions and 232 deletions
+4 -4
View File
@@ -881,13 +881,13 @@ describe("keyword-detector team mode", () => {
})
function createMockPluginInput() {
return {
return testCoerce<PluginInput>({
client: {
tui: {
showToast: async () => {},
},
},
} as unknown as PluginInput
})
}
test("should inject team-mode message when user types 'team mode'", async () => {
@@ -1063,7 +1063,7 @@ describe("keyword-detector disabled_keywords config", () => {
function createMockPluginInput(options: { toastCalls?: string[] } = {}) {
const toastCalls = options.toastCalls ?? []
return {
return testCoerce<PluginInput>({
client: {
tui: {
showToast: async (opts: { body: { title: string } }) => {
@@ -1071,7 +1071,7 @@ describe("keyword-detector disabled_keywords config", () => {
},
},
},
} as unknown as PluginInput
})
}
test("should NOT inject search-mode when disabled_keywords includes 'search'", async () => {