mirror of
https://github.com/forketyfork/obsidian-food-tracker.git
synced 2026-07-22 13:00:26 +00:00
18 lines
472 B
TypeScript
18 lines
472 B
TypeScript
import FoodTrackerPlugin from "../main";
|
|
import { App, PluginManifest } from "obsidian";
|
|
|
|
describe("FoodTrackerPlugin", () => {
|
|
let plugin: FoodTrackerPlugin;
|
|
|
|
beforeEach(async () => {
|
|
plugin = new FoodTrackerPlugin({} as App, {} as PluginManifest);
|
|
await plugin.onload();
|
|
});
|
|
|
|
test("plugin loads with default settings", async () => {
|
|
await plugin.loadSettings();
|
|
|
|
expect(plugin.settings).toBeDefined();
|
|
expect(plugin.settings.hello).toBe("world");
|
|
});
|
|
});
|