Skip to content

Commit 6ce0a28

Browse files
committed
test: remove redundant subset assertions
1 parent a560368 commit 6ce0a28

7 files changed

Lines changed: 0 additions & 25 deletions

File tree

‎packages/ai/src/api-registry.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ describe("LLM API registry", () => {
4545
);
4646

4747
const provider = registry.getApiProvider("test-api");
48-
expect(provider).toBeDefined();
4948
expect(() => provider?.streamSimple({ ...model, api: "other-api" }, { messages: [] })).toThrow(
5049
"Mismatched api: other-api expected test-api",
5150
);

‎packages/ai/src/host.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ describe("AI transport host configuration", () => {
5858
configureAiTransportHost({ registerCustomApi: registrar });
5959

6060
const provider = registry.getApiProvider(CUSTOM_API);
61-
expect(provider).toBeDefined();
6261
expect(registrar).toHaveBeenCalledOnce();
6362
expect(provider).toMatchObject({
6463
api: CUSTOM_API,

‎packages/model-catalog-core/src/remote-catalog-bundle.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ describe("remote model catalog bundle", () => {
3434
it("accepts schema v1 and deeply strips endpoint and header fields", () => {
3535
const parsed = validateAndSanitizeRemoteModelCatalogBundle(validBundle);
3636
const anthropic = parsed.providers.anthropic;
37-
expect(anthropic).toBeDefined();
3837
if (!anthropic) {
3938
throw new Error("expected anthropic provider");
4039
}

‎test/scripts/runtime-postbuild.test.ts‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
discoverStaticExtensionAssets,
1010
} from "../../scripts/lib/static-extension-assets.mts";
1111
import {
12-
listStaticExtensionAssetOutputs,
1312
rewriteRootRuntimeImportsToStableAliases,
1413
runRuntimePostBuild,
1514
writeLegacyCliExitCompatChunks,
@@ -69,21 +68,6 @@ async function writeExportHtmlBuildFixture(rootDir: string): Promise<void> {
6968
}
7069

7170
describe("runtime postbuild static assets", () => {
72-
it("tracks plugin-owned static assets that release packaging must ship", () => {
73-
expect(listStaticExtensionAssetOutputs()).toEqual([
74-
"dist/extensions/acpx/mcp-command-line.mjs",
75-
"dist/extensions/acpx/mcp-proxy.mjs",
76-
"dist/extensions/diffs-language-pack/assets/viewer-runtime.js",
77-
"dist/extensions/diffs/assets/viewer-runtime.js",
78-
"dist/extensions/discord/assets/embedded-app-sdk.mjs",
79-
"dist/extensions/onepassword/onepassword-op-path.js",
80-
"dist/extensions/onepassword/onepassword-secret-id.js",
81-
"dist/extensions/onepassword/onepassword-secret-ref-resolver.js",
82-
"dist/extensions/vault/vault-secret-id.js",
83-
"dist/extensions/vault/vault-secret-ref-resolver.js",
84-
]);
85-
});
86-
8771
it("discovers repo static asset metadata without scanning extension directories", () => {
8872
const payload = expectNoNodeFsScans<{
8973
outputs: string[];

‎ui/src/app-navigation-groups.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const settingsRoutes = SETTINGS_NAVIGATION_GROUPS.flatMap((group) => group.route
1818
describe("sidebar entries", () => {
1919
it("keeps operational destinations visible by default", () => {
2020
expect(DEFAULT_SIDEBAR_ENTRIES).toEqual(["route:cron", "route:plugins"]);
21-
expect(DEFAULT_SIDEBAR_ENTRIES).not.toContain("route:usage");
2221
});
2322

2423
it("drops retired routes from persisted entries", () => {

‎ui/src/app-navigation.test.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ describe("pathForRoute", () => {
314314
it("returns correct path without base", () => {
315315
expect(pathForRoute("chat")).toBe("/chat");
316316
expect(pathForRoute("apps")).toBe("/apps");
317-
expect(pathForRoute("portals")).toBe("/portals");
318317
expect(pathForRoute("dashboards")).toBe("/dashboards");
319318
expect(pathForRoute("custodian")).toBe("/custodian");
320319
expect(pathForRoute("connection")).toBe("/settings/connection");
@@ -323,7 +322,6 @@ describe("pathForRoute", () => {
323322
expect(pathForRoute("plugins")).toBe("/settings/plugins");
324323
expect(pathForRoute("approvals")).toBe("/settings/approvals");
325324
expect(pathForRoute("labs")).toBe("/settings/labs");
326-
expect(pathForRoute("secrets")).toBe("/settings/secrets");
327325
});
328326

329327
it("prepends base path", () => {
@@ -353,7 +351,6 @@ describe("routeIdFromPath", () => {
353351
expect(routeIdFromPath("/connection")).toBeNull();
354352
expect(routeIdFromPath("/activity")).toBe("activity");
355353
expect(routeIdFromPath("/apps")).toBe("apps");
356-
expect(routeIdFromPath("/portals")).toBe("portals");
357354
expect(routeIdFromPath("/dashboards")).toBe("dashboards");
358355
expect(routeIdFromPath("/sessions")).toBe("sessions");
359356
expect(routeIdFromPath("/debug")).toBe("debug");
@@ -532,7 +529,6 @@ describe("SIDEBAR_NAV_ROUTES", () => {
532529
"apps",
533530
"portals",
534531
]);
535-
expect(new Set(SIDEBAR_NAV_ROUTES).size).toBe(SIDEBAR_NAV_ROUTES.length);
536532
});
537533

538534
it("collapses the plugins hub to a single sidebar entry", () => {

‎ui/src/app-routes.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ describe("application router registration", () => {
1212

1313
it("registers every route id exactly once", () => {
1414
const routeIds = router.routes.map((route) => route.id);
15-
expect(routeIds).toContain("portals");
1615
expect([...routeIds].toSorted()).toEqual([...APP_ROUTE_IDS].toSorted());
1716
});
1817

0 commit comments

Comments
 (0)