The ST4TS page (/stats.html), GET /api/stats-hive, hive-c0re's hive_stats rollup and the modelPrices option that only fed its cost estimate are gone. Each agent's own /stats page and the turn-stats database it reads are unchanged. Setting modelPrices now fails evaluation with a message saying so.
23 lines
794 B
JavaScript
23 lines
794 B
JavaScript
// How a link in the links menu opens. Run by `npm test`, which Node runs with
|
|
// its built-in test runner and type stripping.
|
|
import assert from "node:assert/strict";
|
|
import { test } from "node:test";
|
|
import { linkAttrs } from "../../shared/src/links-menu/links.ts";
|
|
|
|
test("a link the menu was handed opens in a new tab, without a referrer", () => {
|
|
assert.deepEqual(linkAttrs({ label: "forge", url: "https://forge.x" }), {
|
|
target: "_blank",
|
|
rel: "noreferrer",
|
|
});
|
|
assert.deepEqual(
|
|
linkAttrs({ label: "forge", url: "https://forge.x", external: true }),
|
|
{ target: "_blank", rel: "noreferrer" },
|
|
);
|
|
});
|
|
|
|
test("a page of the same site opens in place", () => {
|
|
assert.deepEqual(
|
|
linkAttrs({ label: "api docs", url: "/api/docs/", external: false }),
|
|
{},
|
|
);
|
|
});
|