Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/conformance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ describe("frozen conformance fixtures", () => {
it.skipIf(!e2eZip || !conformanceVectors)(
"reproduces the vectors byte-exactly (single-row-greedy)",
async () => {
const vectors = JSON.parse(
readFileSync(conformanceVectors!, "utf-8"),
) as {
const vectors = JSON.parse(readFileSync(conformanceVectors!, "utf-8")) as {
model: string
decode: { mode: string }
vectors: { src: string; out: string }[]
Expand Down
4 changes: 2 additions & 2 deletions test/imf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe("registry", () => {
it("DEFAULT_INDEX_URL pins a GitHub Release asset, never raw", async () => {
const { DEFAULT_INDEX_URL } = await import("../src/ml/imf/registry.js")
expect(DEFAULT_INDEX_URL).toMatch(
/^https:\/\/github\.com\/interscript\/interscript-models\/releases\/download\/index-v10\/models-index\.yaml$/,
/^https:\/\/github\.com\/interscript\/interscript-models\/releases\/download\/index-v12\/models-index\.yaml$/,
)
expect(DEFAULT_INDEX_URL).not.toMatch(/raw\.githubusercontent/)
})
Expand Down Expand Up @@ -389,7 +389,7 @@ describe("registry", () => {
expect(typeof imf!["resolve"]).toBe("function")
expect(typeof imf!["IMFModel"]).toBe("function")
expect(imf!["DEFAULT_INDEX_URL"]).toMatch(
/github\.com\/interscript\/interscript-models\/releases\/download\/index-v10\/models-index\.yaml/,
/github\.com\/interscript\/interscript-models\/releases\/download\/index-v12\/models-index\.yaml/,
)
})
})
Expand Down
Loading