@@ -125,8 +125,8 @@ describe("Codex plugin inventory", () => {
|
125 | 125 | appOwnership: "proven", |
126 | 126 | ownedAppIds: ["github-app"], |
127 | 127 | }); |
128 | | -expect(inventory.diagnostics).not.toContainEqual( |
129 | | -expect.objectContaining({ code: "plugin_missing" }), |
| 128 | +expect(inventory.diagnostics.map((diagnostic) => diagnostic.code)).not.toContain( |
| 129 | +"plugin_missing", |
130 | 130 | ); |
131 | 131 | }); |
132 | 132 | |
@@ -229,9 +229,9 @@ describe("Codex plugin inventory", () => {
|
229 | 229 | |
230 | 230 | expect(inventory.records[0]?.appOwnership).toBe("ambiguous"); |
231 | 231 | expect(inventory.records[0]?.ownedAppIds).toStrictEqual([]); |
232 | | -expect(inventory.diagnostics).toContainEqual( |
233 | | -expect.objectContaining({ code: "app_ownership_ambiguous" }), |
234 | | -); |
| 232 | +expect(inventory.diagnostics.map((diagnostic) => diagnostic.code)).toStrictEqual([ |
| 233 | +"app_ownership_ambiguous", |
| 234 | +]); |
235 | 235 | }); |
236 | 236 | |
237 | 237 | it("fails closed when the app inventory cache is missing", async () => { |
@@ -267,9 +267,9 @@ describe("Codex plugin inventory", () => {
|
267 | 267 | expect(inventory.appInventory?.state).toBe("missing"); |
268 | 268 | expect(inventory.records[0]?.ownedAppIds).toEqual(["google-calendar-app"]); |
269 | 269 | expect(inventory.records[0]?.apps).toStrictEqual([]); |
270 | | -expect(inventory.diagnostics).toContainEqual( |
271 | | -expect.objectContaining({ code: "app_inventory_missing" }), |
272 | | -); |
| 270 | +expect(inventory.diagnostics.map((diagnostic) => diagnostic.code)).toStrictEqual([ |
| 271 | +"app_inventory_missing", |
| 272 | +]); |
273 | 273 | }); |
274 | 274 | }); |
275 | 275 | |
|