diff options
author | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-09 20:03:09 +0200 |
---|---|---|
committer | Johann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com> | 2018-10-17 06:57:29 +0200 |
commit | 6f5723a169b5d400c136dbd844fc54c68e5f8563 (patch) | |
tree | e7bad2648366ed5943293655a0abe23367e869a6 /spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js | |
parent | 28d412e5b2b8499fba22e8fabb1d44f44449228e (diff) | |
download | gitlab-ce-6f5723a169b5d400c136dbd844fc54c68e5f8563.tar.gz |
enable jasmine/new-line-before-expect
Diffstat (limited to 'spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js')
-rw-r--r-- | spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js b/spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js index 305cee94f57..bb7be2fe1c2 100644 --- a/spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js +++ b/spec/javascripts/vue_mr_widget/components/mr_widget_memory_usage_spec.js @@ -186,9 +186,11 @@ describe('MemoryUsage', () => { expect( el.querySelector('.js-usage-info.usage-info-loading'), ).toBeDefined(); + expect( el.querySelector('.js-usage-info .usage-info-load-spinner'), ).toBeDefined(); + expect(el.querySelector('.js-usage-info').innerText).toContain( messages.loadingMetrics, ); @@ -219,6 +221,7 @@ describe('MemoryUsage', () => { expect( el.querySelector('.js-usage-info.usage-info-failed'), ).toBeDefined(); + expect(el.querySelector('.js-usage-info').innerText).toContain( messages.loadFailed, ); @@ -235,6 +238,7 @@ describe('MemoryUsage', () => { expect( el.querySelector('.js-usage-info.usage-info-unavailable'), ).toBeDefined(); + expect(el.querySelector('.js-usage-info').innerText).toContain( messages.metricsUnavailable, ); |