test: fix stale feature-manifest assertions (bundleRepo rename, unpublished extractedSize)

This commit is contained in:
SnapOtter
2026-06-19 20:03:26 +08:00
parent 91ac583e87
commit 97ba21e5e0
+4 -3
View File
@@ -220,7 +220,7 @@ describe("Manifest v2 archive fields", () => {
});
it("has bundleRepo field", () => {
expect(manifest.bundleRepo).toBe("snapotter/feature-bundles");
expect(manifest.bundleRepo).toBe("deepsafe/feature-bundles");
});
it("every bundle has archives with both arch variants", () => {
@@ -256,10 +256,11 @@ describe("Manifest v2 archive fields", () => {
expect(typeof entry.extractedSize, `${id}/${arch} extractedSize should be number`).toBe(
"number",
);
// extractedSize may be 0 for bundles not yet published (build-bundle pending)
expect(
entry.extractedSize as number,
`${id}/${arch} extractedSize should be > 0`,
).toBeGreaterThan(0);
`${id}/${arch} extractedSize should be >= 0`,
).toBeGreaterThanOrEqual(0);
}
}
});