Skip to content
Snippets Groups Projects
Commit aa27dac3 authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Test for pagination template component

parent 598c299a
No related branches found
No related tags found
1 merge request!93Search and paginate group lists
Pipeline #180004 passed
...@@ -138,6 +138,7 @@ export default { ...@@ -138,6 +138,7 @@ export default {
this.updatePageMyCommunities(this.currentPageMyCommunities -1); this.updatePageMyCommunities(this.currentPageMyCommunities -1);
} }
}, },
//Triggers when search field input is changed
searchWritten: function (){ searchWritten: function (){
//This method triggers when search input field is changed //This method triggers when search input field is changed
if(this.search.length > 0){ if(this.search.length > 0){
......
import {mount} from "@vue/test-utils";
import Pagination from "@/components/BaseComponents/PaginationTemplate.vue";
describe("PaginationTemplate", () => {
let wrapper;
beforeEach(() => {
wrapper = mount(Pagination, {
//passing prop to component
props: {
items: [],
currentPage: 0,
pageSize: 4,
},
});
});
it("is instantiated", () => {
expect(wrapper.exists()).toBeTruthy();
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment