mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
test: fix stale feature-manifest assertions (bundleRepo rename, unpublished extractedSize)
This commit is contained in:
@@ -220,7 +220,7 @@ describe("Manifest v2 archive fields", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("has bundleRepo field", () => {
|
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", () => {
|
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(
|
expect(typeof entry.extractedSize, `${id}/${arch} extractedSize should be number`).toBe(
|
||||||
"number",
|
"number",
|
||||||
);
|
);
|
||||||
|
// extractedSize may be 0 for bundles not yet published (build-bundle pending)
|
||||||
expect(
|
expect(
|
||||||
entry.extractedSize as number,
|
entry.extractedSize as number,
|
||||||
`${id}/${arch} extractedSize should be > 0`,
|
`${id}/${arch} extractedSize should be >= 0`,
|
||||||
).toBeGreaterThan(0);
|
).toBeGreaterThanOrEqual(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user