diff options
author | Sean McGivern <sean@gitlab.com> | 2019-07-03 09:16:01 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-07-03 09:16:01 +0000 |
commit | f90a7601c40c82bd230f9c014bc4f64744e77b5e (patch) | |
tree | 2986d7a2254df60a2d77a6e803e63f652c567c52 /spec | |
parent | e674e62a0dd33eb4e0819de50f5f5074de3c0303 (diff) | |
parent | dac8e99ee7580df80faf72954912185f63e5f2a2 (diff) | |
download | gitlab-ce-f90a7601c40c82bd230f9c014bc4f64744e77b5e.tar.gz |
Merge branch 'sh-improve-redis-peek' into 'master'
Add Redis call details in Peek performance bar
See merge request gitlab-org/gitlab-ce!30191
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/performance_bar/components/simple_metric_spec.js | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/spec/javascripts/performance_bar/components/simple_metric_spec.js b/spec/javascripts/performance_bar/components/simple_metric_spec.js deleted file mode 100644 index 98b843e9711..00000000000 --- a/spec/javascripts/performance_bar/components/simple_metric_spec.js +++ /dev/null @@ -1,47 +0,0 @@ -import Vue from 'vue'; -import simpleMetric from '~/performance_bar/components/simple_metric.vue'; -import mountComponent from 'spec/helpers/vue_mount_component_helper'; - -describe('simpleMetric', () => { - let vm; - - afterEach(() => { - vm.$destroy(); - }); - - describe('when the current request has no details', () => { - beforeEach(() => { - vm = mountComponent(Vue.extend(simpleMetric), { - currentRequest: {}, - metric: 'gitaly', - }); - }); - - it('does not display details', () => { - expect(vm.$el.innerText).not.toContain('/'); - }); - - it('displays the metric name', () => { - expect(vm.$el.innerText).toContain('gitaly'); - }); - }); - - describe('when the current request has details', () => { - beforeEach(() => { - vm = mountComponent(Vue.extend(simpleMetric), { - currentRequest: { - details: { gitaly: { duration: '123ms', calls: '456' } }, - }, - metric: 'gitaly', - }); - }); - - it('diplays details', () => { - expect(vm.$el.innerText.replace(/\s+/g, ' ')).toContain('123ms / 456'); - }); - - it('displays the metric name', () => { - expect(vm.$el.innerText).toContain('gitaly'); - }); - }); -}); |