{"size": 457, "ext": "js", "max_stars_repo_path": "tests/unit/plugin.spec.js", "max_stars_repo_name": "renatodeleao/vue-junkie-props", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/unit/plugin.spec.js", "max_issues_repo_name": "renatodeleao/vue-junkie-props", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/unit/plugin.spec.js", "max_forks_repo_name": "renatodeleao/vue-junkie-props", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.8823529412, "max_line_length": 63, "alphanum_fraction": 0.6148796499}
import { shallowMount, createLocalVue } from "@vue/test-utils";
import HelloWorld from "@/components/HelloWorld.vue";
import plugin from "../../src/index";

describe("Plugin", () => {
  it("should be 2", () => {
    const msg = "new message";
    const localVue = createLocalVue();
    localVue.use(plugin);
    const wrapper = shallowMount(HelloWorld, {
      localVue,
      propsData: { msg }
    });
    expect(wrapper.vm.$add(1, 1)).toBe(2);
  });
});
