Просмотр исходного кода

test(boot): type the id-less group row in the ownership spec

Yichen Jiang 1 месяц назад
Родитель
Сommit
d6f5160591
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      packages/boot/app-boot/tests/compose-stack.spec.ts

+ 2 - 1
packages/boot/app-boot/tests/compose-stack.spec.ts

@@ -90,7 +90,8 @@ describe('claimLayerIds', () => {
     // A child of a group without an id cannot be restated: no patch can address that group.
     const anonymous = layer('anonymous', 'builtin', [
       { insert: [
-        { name: 'cordis:group', group: true, config: [{ id: 'a', name: 'a' }] },
+        // A row leaves its id to the Loader, as YAML rows may; the type asks for one.
+        { name: 'cordis:group', group: true, config: [{ id: 'a', name: 'a' }] } as unknown as EntryOptions,
         { id: 'h', name: 'cordis:group', group: true, config: [] },
       ] },
       { id: 'h', config: [{ id: 'a', name: 'a' }] },