Skip to content
Snippets Groups Projects
Select Git revision
  • 9887f12a3617343b9f62e9423fcd0c2d8371951e
  • main default
  • dev
3 results

map.js

Blame
  • community-header.spec.js 634 B
    import { mount } from "@vue/test-utils";
    import CommunityHeader from "@/components/CommunityComponents/CommunityHeader.vue";
    
    describe("CommunityHeader component", () => {
      let wrapper;
    
      beforeEach(() => {
        wrapper = mount(CommunityHeader, {
          //passing prop to component
          props: {
            adminStatus: true,
            community: {
              communityId: 1,
              name: "String",
              description: "String",
              visibility: 0,
              location: "String",
              picture: "String",
            },
          },
        });
      });
    
      it("is instantiated", () => {
        expect(wrapper.exists()).toBeTruthy();
      });
    });