From 4d1bae708dbb072508acde250870e7a9cc6e0862 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 21 Mar 2018 17:26:07 +0000 Subject: [PATCH] fixed karma --- .../components/detailed_metric_spec.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/spec/javascripts/performance_bar/components/detailed_metric_spec.js b/spec/javascripts/performance_bar/components/detailed_metric_spec.js index eee0210a2a9..c4611dc7662 100644 --- a/spec/javascripts/performance_bar/components/detailed_metric_spec.js +++ b/spec/javascripts/performance_bar/components/detailed_metric_spec.js @@ -20,16 +20,8 @@ describe('detailedMetric', () => { }); }); - it('does not display details', () => { - expect(vm.$el.innerText).not.toContain('/'); - }); - - it('does not display the modal', () => { - expect(vm.$el.querySelector('.performance-bar-modal')).toBeNull(); - }); - - it('displays the metric name', () => { - expect(vm.$el.innerText).toContain('gitaly'); + it('does not render the element', () => { + expect(vm.$el.innerHTML).toEqual(undefined); }); });