test(plugin): 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:
@@ -4,7 +4,7 @@ import type { ModelCacheState } from "../../plugin-state"
|
||||
import type { PluginContext } from "../types"
|
||||
import { createSessionHooks } from "./create-session-hooks"
|
||||
|
||||
const mockContext = {
|
||||
const mockContext = testCoerce<PluginContext>({
|
||||
directory: "/tmp",
|
||||
client: {
|
||||
tui: {
|
||||
@@ -15,7 +15,7 @@ const mockContext = {
|
||||
update: async () => ({}),
|
||||
},
|
||||
},
|
||||
} as unknown as PluginContext
|
||||
})
|
||||
|
||||
const mockModelCacheState = {} as ModelCacheState
|
||||
|
||||
|
||||
Reference in New Issue
Block a user