瀏覽代碼

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

Yichen Jiang 3 周之前
父節點
當前提交
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' }] },