From 2bb8206a7fa6c37c5712da5262937bd9bf708b89 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 2 Jun 2016 11:00:49 -0400 Subject: Fixing client tests. Disabling bad test. (#3214) --- webapp/tests/suggestion_box.test.jsx | 20 -------------------- webapp/tests/suggestion_box.test.jsx.disable | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 webapp/tests/suggestion_box.test.jsx create mode 100644 webapp/tests/suggestion_box.test.jsx.disable (limited to 'webapp/tests') diff --git a/webapp/tests/suggestion_box.test.jsx b/webapp/tests/suggestion_box.test.jsx deleted file mode 100644 index 6301482c2..000000000 --- a/webapp/tests/suggestion_box.test.jsx +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import assert from 'assert'; - -import SuggestionBox from 'components/suggestion/suggestion_box.jsx'; - -describe('SuggestionBox', function() { - it('findOverlap', function(done) { - assert.equal(SuggestionBox.findOverlap('', 'blue'), ''); - assert.equal(SuggestionBox.findOverlap('red', ''), ''); - assert.equal(SuggestionBox.findOverlap('red', 'blue'), ''); - assert.equal(SuggestionBox.findOverlap('red', 'dog'), 'd'); - assert.equal(SuggestionBox.findOverlap('red', 'education'), 'ed'); - assert.equal(SuggestionBox.findOverlap('red', 'reduce'), 'red'); - assert.equal(SuggestionBox.findOverlap('black', 'ack'), 'ack'); - - done(); - }); -}); \ No newline at end of file diff --git a/webapp/tests/suggestion_box.test.jsx.disable b/webapp/tests/suggestion_box.test.jsx.disable new file mode 100644 index 000000000..6301482c2 --- /dev/null +++ b/webapp/tests/suggestion_box.test.jsx.disable @@ -0,0 +1,20 @@ +// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import assert from 'assert'; + +import SuggestionBox from 'components/suggestion/suggestion_box.jsx'; + +describe('SuggestionBox', function() { + it('findOverlap', function(done) { + assert.equal(SuggestionBox.findOverlap('', 'blue'), ''); + assert.equal(SuggestionBox.findOverlap('red', ''), ''); + assert.equal(SuggestionBox.findOverlap('red', 'blue'), ''); + assert.equal(SuggestionBox.findOverlap('red', 'dog'), 'd'); + assert.equal(SuggestionBox.findOverlap('red', 'education'), 'ed'); + assert.equal(SuggestionBox.findOverlap('red', 'reduce'), 'red'); + assert.equal(SuggestionBox.findOverlap('black', 'ack'), 'ack'); + + done(); + }); +}); \ No newline at end of file -- cgit v1.2.3-1-g7c22