mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
test(plugin-inventory): avoid assuming loader sibling order
This commit is contained in:
@@ -52,8 +52,9 @@ describe('PluginInventoryService', () => {
|
||||
})
|
||||
await ctx.loader.create({ name: 'cordis:active', group: true })
|
||||
|
||||
expect(inventory.list()).toEqual({
|
||||
entries: [
|
||||
const snapshot = inventory.list()
|
||||
expect(snapshot.entries).toHaveLength(3)
|
||||
expect(snapshot.entries).toEqual(expect.arrayContaining([
|
||||
{
|
||||
entryId: activeId,
|
||||
moduleName: 'cordis:active',
|
||||
@@ -72,8 +73,7 @@ describe('PluginInventoryService', () => {
|
||||
enabled: false,
|
||||
fiberPhase: null,
|
||||
},
|
||||
],
|
||||
})
|
||||
]))
|
||||
|
||||
await ctx.loader.update(activeId, { disabled: true })
|
||||
expect(inventory.list().entries.find(entry => entry.entryId === activeId)).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user