UNPKG

@ithaka/bonsai

Version:
14 lines (12 loc) 422 B
import { BonsaiBase } from "../js/bonsai.base"; describe("Test Bonsai Base", function () { test("throws an error if no element is passed in", function () { let expected_result = "Need to pass in an element to bind the given component"; try { new BonsaiBase(); } catch (actual_result) { expect(actual_result.message).toBe(expected_result); } }); });