We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 279c920 commit acfe9feCopy full SHA for acfe9fe
test/laravel-vue-pagination.spec.js
@@ -48,13 +48,14 @@ describe('LaravelVuePagination', function() {
48
expect(vm.$el.getElementsByTagName('li')[2].classList).toContain('active');
49
});
50
51
- it('emits correct event', function() {
+ it('emits correct event', function(done) {
52
const vm = getComponent(LaravelVuePagination, {
53
data: exampleData
54
55
56
vm.$on('pagination-change-page', function (page) {
57
expect(page).toBe(2);
58
+ done();
59
60
61
vm.selectPage(2);
0 commit comments