catalog-backend: update DefaultProcessingDatabase test

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-01-28 12:42:15 +01:00
parent 4ae6884a32
commit 3ac000e228
@@ -784,7 +784,7 @@ describe('DefaultProcessingDatabase', () => {
});
const result1 = await db.transaction(async tx =>
db.listParents(tx, { entityRef: 'component:default/foobar' }),
db.listParents(tx, { entityRefs: ['component:default/foobar'] }),
);
expect(result1.entityRefs).toEqual([
'location:default/root-1',
@@ -792,12 +792,12 @@ describe('DefaultProcessingDatabase', () => {
]);
const result2 = await db.transaction(async tx =>
db.listParents(tx, { entityRef: 'location:default/root-1' }),
db.listParents(tx, { entityRefs: ['location:default/root-1'] }),
);
expect(result2.entityRefs).toEqual(['location:default/root-2']);
const result3 = await db.transaction(async tx =>
db.listParents(tx, { entityRef: 'location:default/root-2' }),
db.listParents(tx, { entityRefs: ['location:default/root-2'] }),
);
expect(result3.entityRefs).toEqual([]);
},