Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-03-23 19:52:35 +0300
committerWinnie Hellmann <winnie@gitlab.com>2019-03-23 19:53:46 +0300
commit514ee63826e47229bfd03bdbb740f2dd1eae1d03 (patch)
tree3f0d96a4402e8aa54c375084cc4c5e6cf546824b /spec/javascripts/cycle_analytics
parent6d330015dfdb1979a0773c87c53b84cc86b28a6d (diff)
Move some tests from Karma to Jest
Diffstat (limited to 'spec/javascripts/cycle_analytics')
-rw-r--r--spec/javascripts/cycle_analytics/limit_warning_component_spec.js42
1 files changed, 0 insertions, 42 deletions
diff --git a/spec/javascripts/cycle_analytics/limit_warning_component_spec.js b/spec/javascripts/cycle_analytics/limit_warning_component_spec.js
deleted file mode 100644
index 13e9fe00a00..00000000000
--- a/spec/javascripts/cycle_analytics/limit_warning_component_spec.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import Vue from 'vue';
-import Translate from '~/vue_shared/translate';
-import limitWarningComp from '~/cycle_analytics/components/limit_warning_component.vue';
-
-Vue.use(Translate);
-
-describe('Limit warning component', () => {
- let component;
- let LimitWarningComponent;
-
- beforeEach(() => {
- LimitWarningComponent = Vue.extend(limitWarningComp);
- });
-
- it('should not render if count is not exactly than 50', () => {
- component = new LimitWarningComponent({
- propsData: {
- count: 5,
- },
- }).$mount();
-
- expect(component.$el.textContent.trim()).toBe('');
-
- component = new LimitWarningComponent({
- propsData: {
- count: 55,
- },
- }).$mount();
-
- expect(component.$el.textContent.trim()).toBe('');
- });
-
- it('should render if count is exactly 50', () => {
- component = new LimitWarningComponent({
- propsData: {
- count: 50,
- },
- }).$mount();
-
- expect(component.$el.textContent.trim()).toBe('Showing 50 events');
- });
-});