Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const presentation = {

const pages = [
["settings", "route.settings", "host:layers"],
["create", "route.create", "host:create"],
["create", "route.create", "host:new"],
["configuration", "route.configuration", "host:settings"],
["logs", "route.logs", "host:history"],
["runtime", "route.runtime", "host:open"],
Expand Down
9 changes: 9 additions & 0 deletions test/scaffold.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,12 @@ test("scopes binding mutation to the manifest-authorized simulator tenant", asyn
channelTenants: [{ adapterId: "simulator", accountId: "local", tenantId: "test" }],
});
});

test("uses the public Host new-action icon token for the create page", async () => {
const source = await import("../dist/channel.js");
// The bundled source keeps page metadata as a local constant; assert the public token is present and the removed token is absent.
const bundled = await readFile(new URL("../dist/channel.js", import.meta.url), "utf8");
assert.match(bundled, /host:new/);
assert.doesNotMatch(bundled, /host:create/);
assert.equal(source.manifest.id, "channel");
});