summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-03-21 17:26:07 +0000
committerPhil Hughes <me@iamphill.com>2018-03-21 17:26:07 +0000
commit4d1bae708dbb072508acde250870e7a9cc6e0862 (patch)
treed7cb580d24733189311366964dd8bdac016c0575 /spec
parent7d651ad1de8a6b150164a5f94938e2f79f875f93 (diff)
downloadgitlab-ce-4d1bae708dbb072508acde250870e7a9cc6e0862.tar.gz
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/performance_bar/components/detailed_metric_spec.js12
1 files 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);
});
});