UNPKG

@oruga-ui/oruga-next

Version:

UI components for Vue.js and CSS framework agnostic

19 lines (15 loc) 596 B
import { describe, test, expect } from "vitest"; import { toValue } from "vue"; import { getOption, getOptions, setOptions } from "../config"; describe("Configuration", () => { test("iconPack option should be `fa`", () => { const config = getOptions(); setOptions(Object.assign(config, { iconPack: "fa" })); const option = getOption("iconPack"); expect(option).toBe("fa"); }); test("teleportTarget option should be `body`", () => { const option = getOption("teleportTarget"); expect(toValue(option)).toBe(document.body); }); });