From 0e44a4b8e336faabea80097c5c332596c9855443 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Thu, 4 Aug 2016 09:03:43 +0100 Subject: [PATCH] Remove duplicate test --- tests/spec/choices_spec.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/spec/choices_spec.js b/tests/spec/choices_spec.js index 63ee039..883a0d1 100644 --- a/tests/spec/choices_spec.js +++ b/tests/spec/choices_spec.js @@ -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';