mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 13:06:34 +02:00
Remove duplicate test
This commit is contained in:
parent
9382d64bcb
commit
0e44a4b8e3
|
@ -124,7 +124,7 @@ describe('Choices', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('should handle text inputs', function() {
|
||||
describe('should accept text inputs', function() {
|
||||
beforeEach(function() {
|
||||
this.input = document.createElement('input');
|
||||
this.input.type = "text";
|
||||
|
@ -136,11 +136,6 @@ describe('Choices', function() {
|
|||
this.choices = new Choices(this.input);
|
||||
});
|
||||
|
||||
it('should set value via using setValue()', function() {
|
||||
this.choices.setValue(['test1', 'test2']);
|
||||
expect(this.choices.currentState.items.length).toEqual(2);
|
||||
});
|
||||
|
||||
it('should accept a user inputted value', function() {
|
||||
this.choices.input.focus();
|
||||
this.choices.input.value = 'test';
|
||||
|
@ -159,7 +154,7 @@ describe('Choices', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('should handle single select inputs', function() {
|
||||
describe('should accept single select inputs', function() {
|
||||
beforeEach(function() {
|
||||
this.input = document.createElement('select');
|
||||
this.input.className = 'js-choices';
|
||||
|
@ -264,7 +259,7 @@ describe('Choices', function() {
|
|||
});
|
||||
});
|
||||
|
||||
describe('should handle multiple select inputs', function() {
|
||||
describe('should accept multiple select inputs', function() {
|
||||
beforeEach(function() {
|
||||
this.input = document.createElement('select');
|
||||
this.input.className = 'js-choices';
|
||||
|
|
Loading…
Reference in a new issue