feat(catalog): repair missing furniture components with verified status
This commit is contained in:
1 parent
3c24df9b1d
commit
570f3dde44
13 files changed
+438
-164
No files matched your search
@@ -65,3 +65,39 @@ describe("studio inspection", () => {
|
||||
).toBe("conflict");
|
||||
});
|
||||
});
|
||||
|
||||
import { furnitureHealth } from "./studio-inspection";
|
||||
|
||||
it("does not call SQL-only furniture complete", () => {
|
||||
expect(
|
||||
furnitureHealth({
|
||||
...empty,
|
||||
sql: [{ id: 1, spriteId: 2, name: "chair", type: "s" }],
|
||||
}),
|
||||
).toMatchObject({
|
||||
state: "incomplete",
|
||||
missing: ["Nitro", "Icon", "Furnidata", "Catalog offer"],
|
||||
});
|
||||
});
|
||||
it("keeps inaccessible assets unverified", () => {
|
||||
expect(
|
||||
furnitureHealth({ ...empty, nitro: { exists: null, bytes: 0 } }).state,
|
||||
).toBe("unknown");
|
||||
});
|
||||
it("detects mismatched local sprite IDs", () => {
|
||||
expect(
|
||||
furnitureHealth({
|
||||
...empty,
|
||||
sql: [{ id: 1, spriteId: 2, name: "chair", type: "s" }],
|
||||
furnidata: [
|
||||
{
|
||||
id: 3,
|
||||
name: "chair",
|
||||
description: "",
|
||||
revision: 1,
|
||||
type: "flooritem",
|
||||
},
|
||||
],
|
||||
}).state,
|
||||
).toBe("conflict");
|
||||
});
|
||||
Reference in new issue
Block a user