vue-photo-gallery
Version:
A Vue.js 2.0 photo gallery based on PhotoSwipe (no extra dependencies)
23 lines (17 loc) • 492 B
JavaScript
import PhotoGallery from "../PhotoGallery";
import { mount, createLocalVue } from "@vue/test-utils";
// create an extended `Vue` constructor
const localVue = createLocalVue();
localVue.use(PhotoGallery);
describe("PhotoGallery", () => {
let wrapper;
beforeAll(() => {
wrapper = mount(PhotoGallery, {
localVue
});
});
it("test initial rendering", () => {
const photoGalleryTemplate = wrapper.html();
expect(photoGalleryTemplate).toMatchSnapshot();
});
});