diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-24 18:17:30 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-24 18:17:30 +0000 |
commit | 0bf82aa5cb3b1ed826dd5c0d46331e17aa60d9e9 (patch) | |
tree | ee5a760877cce0189cc8e765a912a06942f3e4de /spec/frontend/analytics/components/activity_chart_spec.js | |
parent | efbf661c4224d481c57d0346e26983a805e5ec93 (diff) | |
download | gitlab-ce-0bf82aa5cb3b1ed826dd5c0d46331e17aa60d9e9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/analytics/components/activity_chart_spec.js')
-rw-r--r-- | spec/frontend/analytics/components/activity_chart_spec.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/spec/frontend/analytics/components/activity_chart_spec.js b/spec/frontend/analytics/components/activity_chart_spec.js deleted file mode 100644 index 4f8126aaacf..00000000000 --- a/spec/frontend/analytics/components/activity_chart_spec.js +++ /dev/null @@ -1,34 +0,0 @@ -import { GlColumnChart } from '@gitlab/ui/dist/charts'; -import { shallowMount } from '@vue/test-utils'; -import ActivityChart from '~/analytics/product_analytics/components/activity_chart.vue'; - -describe('Activity Chart Bundle', () => { - let wrapper; - function mountComponent({ provide }) { - wrapper = shallowMount(ActivityChart, { - provide: { - formattedData: {}, - ...provide, - }, - }); - } - - const findChart = () => wrapper.findComponent(GlColumnChart); - const findNoData = () => wrapper.find('[data-testid="noActivityChartData"]'); - - describe('Activity Chart', () => { - it('renders an warning message with no data', () => { - mountComponent({ provide: { formattedData: {} } }); - expect(findNoData().exists()).toBe(true); - }); - - it('renders a chart with data', () => { - mountComponent({ - provide: { formattedData: { keys: ['key1', 'key2'], values: [5038, 2241] } }, - }); - - expect(findNoData().exists()).toBe(false); - expect(findChart().exists()).toBe(true); - }); - }); -}); |