From c70e403ea963415c887896fa10c4d5c1f7e0afa7 Mon Sep 17 00:00:00 2001 From: Matanya Fishaimer Date: Sat, 28 Mar 2020 11:49:17 +0300 Subject: [PATCH] fix test --- test/events.spec.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/events.spec.js b/test/events.spec.js index 03a68513..04bb6c6f 100644 --- a/test/events.spec.js +++ b/test/events.spec.js @@ -24,9 +24,8 @@ describe(suite + ': Events', () => { it ('fire a "pagination" event (#813)', done=>{ - // can't paginate on server table without some mocking - if (isClient) { - vm().setPage(3); + vm().setPage(3); + vm().$nextTick(function() { run(function() { eventEmitted('pagination'); @@ -34,9 +33,6 @@ describe(suite + ': Events', () => { expect(data).toEqual(3); }, done); }); - } - - }) });