1 parent 6ed5aeb commit 07d3038Copy full SHA for 07d3038
1 file changed
test/imf.test.ts
@@ -237,7 +237,6 @@ describe("registry", () => {
237
writeFileSync(join(dir, "models.yaml"), "version: 1\nmodels: {}\n")
238
process.env["SECRYST_INDEX"] = join(dir, "models.yaml")
239
try {
240
- const { transliterateAsync: run } = await import("../src/index.js")
241
const map = {
242
schemaVersion: 1,
243
systemCode: "test-secryst-funcall",
@@ -253,7 +252,7 @@ describe("registry", () => {
253
252
functions: new Map(),
254
}
255
configure({ strategies: [(code: string) => (code === map.systemCode ? map : undefined)] })
256
- await expect(run("test-secryst-funcall", "abc")).rejects.toThrow(
+ await expect(transliterateAsync("test-secryst-funcall", "abc")).rejects.toThrow(
257
/unknown model id 'nope-1.0'/,
258
)
259
} finally {
0 commit comments