UNPKG

v-tree-vue

Version:

A light-weight library for management of hierachical content. Most solutions I found did not offer the depth of flexibility I needed with the tree. I decided to solve my problem and also give back to the Vue community. Feel free to log issues, I will jump

14 lines (11 loc) 487 B
import { ItemCustomisations } from "./itemCustomisations"; describe("ItemCustomisation", () => { const customisations = ItemCustomisations; it("makeItemsCheckable() should make items checkable", () => { const expectedTypes = [".docs", ".excel"]; customisations.makeItemsCheckable(expectedTypes); [".docs", ".excel"].forEach(type => { expect(customisations.getCustomisation(type).isCheckable).toBe(true); }); }); });