text: import Vue from "vue";
  import App from "./components/App.js";
  
  describe("Vue component tests", () => {
    it("An example test should pass.", () => {
      expect(2).toEqual(2);
    });
    it("The component should have a title property.", () => {
      const defaultData = App.data();
      expect(defaultData.title).toBe("Bound to Fail");
    });
  
    it("The component should have an updateCurrentChart function.", () => {
      expect(typeof App.methods.updateCurrentChart).toBe("function");
    });
  
    it("The component should have a change function.", () => {
      expect(typeof App.methods.change).toBe("function");
    });
  
    it("has a created hook", () => {
      expect(typeof App).toBe("object");
    });
    it("The component should have a data function.", () => {
      expect(typeof App.data).toBe("function");
      const defaultData = App.data();
      // And there should be localCharts.
      expect(typeof defaultData).toBe("object");
    });
    it("There should be local chart data.", () => {
      const defaultData = App.data();
      expect(defaultData.localLineData.length).toBe(3);
      expect(defaultData.localBarData.length).toBe(5);
    });
    it("Current chart should be localBarData.", () => {
      const defaultData = App.data();
      expect(defaultData.currentChart).toBe("localBarData");
    });
  });
  