@jskit-ai/kernel 0.1.28 → 0.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -144,24 +144,24 @@ test("discoverShellOutletTargetsFromApp returns targets with sourcePath and defa
|
|
|
144
144
|
);
|
|
145
145
|
await writeFileInApp(
|
|
146
146
|
appRoot,
|
|
147
|
-
"src/pages/admin/
|
|
147
|
+
"src/pages/admin/toolbox/index.vue",
|
|
148
148
|
`<template>
|
|
149
149
|
<section>
|
|
150
|
-
<ShellOutlet host="admin-
|
|
150
|
+
<ShellOutlet host="admin-toolbox" position="widgets" default />
|
|
151
151
|
</section>
|
|
152
152
|
</template>
|
|
153
153
|
`
|
|
154
154
|
);
|
|
155
155
|
|
|
156
156
|
const discovered = await discoverShellOutletTargetsFromApp({ appRoot });
|
|
157
|
-
assert.equal(discovered.defaultTargetId, "admin-
|
|
157
|
+
assert.equal(discovered.defaultTargetId, "admin-toolbox:widgets");
|
|
158
158
|
assert.deepEqual(discovered.targets, [
|
|
159
159
|
{
|
|
160
|
-
id: "admin-
|
|
161
|
-
host: "admin-
|
|
162
|
-
position: "
|
|
160
|
+
id: "admin-toolbox:widgets",
|
|
161
|
+
host: "admin-toolbox",
|
|
162
|
+
position: "widgets",
|
|
163
163
|
default: true,
|
|
164
|
-
sourcePath: "src/pages/admin/
|
|
164
|
+
sourcePath: "src/pages/admin/toolbox/index.vue"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
167
|
id: "shell-layout:primary-menu",
|