mirror of
https://github.com/swartzrock/obsidian-settings-float-plugin.git
synced 2026-07-22 07:48:42 +00:00
Enhance supported Obsidian Settings and catalog dialogs with drag, resize, geometry persistence, preset controls, and cleanup on unload. Cover the pure geometry, settings, detector, pointer interaction, and enhancer behavior with Vitest.
16 lines
516 B
TypeScript
16 lines
516 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import manifest from "../manifest.json";
|
|
import versions from "../versions.json";
|
|
|
|
describe("scaffold metadata", () => {
|
|
it("keeps the plugin id stable", () => {
|
|
expect(manifest.id).toBe("settings-float");
|
|
expect(manifest.name).toBe("Settings Float");
|
|
});
|
|
|
|
it("maps the current version to the minimum supported Obsidian version", () => {
|
|
expect(versions[manifest.version as keyof typeof versions]).toBe(
|
|
manifest.minAppVersion,
|
|
);
|
|
});
|
|
});
|