From 365c0c6371896aecb5713ba40aa9e87a29b3b7d5 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Tue, 9 Jan 2018 01:06:27 +0000 Subject: [PATCH] Improve table pagination spec --- spec/javascripts/vue_shared/components/table_pagination_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/vue_shared/components/table_pagination_spec.js b/spec/javascripts/vue_shared/components/table_pagination_spec.js index 1465ef5855f..b3b5dd1d10a 100644 --- a/spec/javascripts/vue_shared/components/table_pagination_spec.js +++ b/spec/javascripts/vue_shared/components/table_pagination_spec.js @@ -32,7 +32,7 @@ describe('Pagination component', () => { change: spy, }); - expect(component.$el.innerHTML).not.toBeDefined(); + expect(component.$el.childNodes.length).toEqual(0); }); describe('prev button', () => {