summaryrefslogtreecommitdiff
path: root/spec/javascripts/projects
diff options
context:
space:
mode:
authorJohann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com>2018-10-09 19:17:36 +0200
committerJohann Hubert Sonntagbauer <johann.sonntagbauer@gmail.com>2018-10-16 21:31:16 +0200
commit0fd203ba2435264ea5814f22094fb13ec052619c (patch)
treedc134630c9a0aa9ab3f4e85a67a7b793304d10a0 /spec/javascripts/projects
parent1dfecf3e178d541b4e3e53619c3be969c1c051af (diff)
downloadgitlab-ce-0fd203ba2435264ea5814f22094fb13ec052619c.tar.gz
enable jasmine/no-promise-without-done-fail
Diffstat (limited to 'spec/javascripts/projects')
-rw-r--r--spec/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown_spec.js4
-rw-r--r--spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js10
-rw-r--r--spec/javascripts/projects/gke_cluster_dropdowns/components/gke_zone_dropdown_spec.js4
3 files changed, 9 insertions, 9 deletions
diff --git a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown_spec.js b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown_spec.js
index 21805ef0b28..345a7c551d1 100644
--- a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown_spec.js
+++ b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown_spec.js
@@ -96,8 +96,8 @@ describe('GkeMachineTypeDropdown', () => {
return vm.$nextTick().then(() => {
expect(vm.$el.querySelector('input').value).toBe(selectedMachineTypeMock);
done();
- });
- });
+ }).catch(done.fail);
+ }).catch(done.fail);
});
});
});
diff --git a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js
index d4fcb2dc8ff..3d1a0b87bb8 100644
--- a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js
+++ b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js
@@ -57,13 +57,13 @@ describe('GkeProjectIdDropdown', () => {
expect(vm.toggleText).toBe(LABELS.DEFAULT);
done();
- }));
+ }).catch(done.fail));
it('returns project name if project selected', done =>
vm.$nextTick().then(() => {
expect(vm.toggleText).toBe(selectedProjectMock.name);
done();
- }));
+ }).catch(done.fail));
it('returns empty toggle text', done =>
vm.$nextTick().then(() => {
@@ -72,7 +72,7 @@ describe('GkeProjectIdDropdown', () => {
expect(vm.toggleText).toBe(LABELS.EMPTY);
done();
- }));
+ }).catch(done.fail));
});
describe('selectItem', () => {
@@ -85,8 +85,8 @@ describe('GkeProjectIdDropdown', () => {
return vm.$nextTick().then(() => {
expect(vm.$el.querySelector('input').value).toBe(selectedProjectMock.projectId);
done();
- });
- });
+ }).catch(done.fail);
+ }).catch(done.fail);
});
});
});
diff --git a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_zone_dropdown_spec.js b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_zone_dropdown_spec.js
index 89a4a7ea2ce..a07e00845cf 100644
--- a/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_zone_dropdown_spec.js
+++ b/spec/javascripts/projects/gke_cluster_dropdowns/components/gke_zone_dropdown_spec.js
@@ -81,8 +81,8 @@ describe('GkeZoneDropdown', () => {
return vm.$nextTick().then(() => {
expect(vm.$el.querySelector('input').value).toBe(selectedZoneMock);
done();
- });
- });
+ }).catch(done.fail);
+ }).catch(done.fail);
});
});
});