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:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-07 02:56:46 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-07 03:32:56 +0300
commit153531fff3c8f32482035bfa87fee2161171e698 (patch)
treecf230fd34ebb0ddb6d7080388e3815164bc09f11 /spec/javascripts
parent31c51c8c5f9f6277f9beb734a2579c35c609e707 (diff)
Finish up feature spec
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/droplab/plugins/input_setter.js36
1 files changed, 1 insertions, 35 deletions
diff --git a/spec/javascripts/droplab/plugins/input_setter.js b/spec/javascripts/droplab/plugins/input_setter.js
index c9b7b2b23dc..412d1054385 100644
--- a/spec/javascripts/droplab/plugins/input_setter.js
+++ b/spec/javascripts/droplab/plugins/input_setter.js
@@ -2,7 +2,7 @@
import InputSetter from '~/droplab/plugins/input_setter';
-describe('InputSetter', function () {
+fdescribe('InputSetter', function () {
describe('init', function () {
beforeEach(function () {
this.config = { InputSetter: {} };
@@ -140,22 +140,6 @@ describe('InputSetter', function () {
expect(this.input.value).toBe(this.newValue);
});
- describe('if there is no newValue', function () {
- beforeEach(function () {
- this.newValue = '';
- this.inputSetter = { hook: { trigger: {} } };
- this.config = { valueAttribute: {}, input: this.input };
- this.input = { value: 'oldValue', tagName: 'INPUT' };
- this.selectedItem = { getAttribute: () => {} };
-
- InputSetter.setInput.call(this.inputSetter, this.config, this.selectedItem);
- });
-
- it('should not set the value of the input', function () {
- expect(this.input.value).toBe('oldValue');
- })
- });
-
describe('if no config.input is provided', function () {
beforeEach(function () {
this.config = { valueAttribute: {} };
@@ -181,24 +165,6 @@ describe('InputSetter', function () {
it('should set the textContent of the input', function () {
expect(this.input.textContent).toBe(this.newValue);
});
-
- describe('if there is no new value', function () {
- beforeEach(function () {
- this.selectedItem = { getAttribute: () => {} };
- this.input = { textContent: 'oldValue', tagName: 'INPUT', hasAttribute: () => {} };
- this.config = { valueAttribute: {}, input: this.input };
- this.inputSetter = { hook: { trigger: {} } };
- this.newValue = 'newValue';
-
- spyOn(this.selectedItem, 'getAttribute').and.returnValue(this.newValue);
-
- InputSetter.setInput.call(this.inputSetter, this.config, this.selectedItem);
- });
-
- it('should not set the value of the input', function () {
- expect(this.input.textContent).toBe('oldValue');
- });
- });
});
describe('if there is an inputAttribute', function () {