mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-08 19:26:33 +00:00

* Add rspack * Remove TransformAsyncModulesPlugin from rspack * Migrate all webpack usage to rspack * Migrate tests to vitest * Fix test suites * Remove chai dependency * Fix compute_state_display tests * Fix resolveTimeZone * Reduces test pipeline * Revert test ci * optimize chunk filtering * Migrate landing-page to rspack * Update rspack dependencies * Add rsdoctor * Fix prod build bundle size * Use rsdoctor for demo stats * Remove unused webpack configs * Update build-scripts/rspack.cjs Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com> * Fix eslint * Update rspack * Remove unused code --------- Co-authored-by: Petar Petrov <MindFreeze@users.noreply.github.com>
20 lines
607 B
TypeScript
20 lines
607 B
TypeScript
import { assert, describe, it } from "vitest";
|
|
import { documentationUrl } from "../../src/util/documentation-url";
|
|
|
|
describe("Generate documentation URL", () => {
|
|
it("Generate documentation url for stable", () => {
|
|
assert.strictEqual(
|
|
// @ts-ignore
|
|
documentationUrl({ config: { version: "1.0.0" } }, "/blog"),
|
|
"https://www.home-assistant.io/blog"
|
|
);
|
|
});
|
|
it("Generate documentation url for rc", () => {
|
|
assert.strictEqual(
|
|
// @ts-ignore
|
|
documentationUrl({ config: { version: "1.0.0b0" } }, "/blog"),
|
|
"https://rc.home-assistant.io/blog"
|
|
);
|
|
});
|
|
});
|