summaryrefslogtreecommitdiffstats
path: root/webapp/tests/suggestion_box.test.jsx.disable
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-06-02 11:00:49 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-06-02 11:00:49 -0400
commit2bb8206a7fa6c37c5712da5262937bd9bf708b89 (patch)
tree1c395ea7783c17baa0754ba44f39f8e27073c028 /webapp/tests/suggestion_box.test.jsx.disable
parenta479d1fee068f3fe85ad8f26b3b4d84fc94b51ef (diff)
downloadchat-2bb8206a7fa6c37c5712da5262937bd9bf708b89.tar.gz
chat-2bb8206a7fa6c37c5712da5262937bd9bf708b89.tar.bz2
chat-2bb8206a7fa6c37c5712da5262937bd9bf708b89.zip
Fixing client tests. Disabling bad test. (#3214)
Diffstat (limited to 'webapp/tests/suggestion_box.test.jsx.disable')
-rw-r--r--webapp/tests/suggestion_box.test.jsx.disable20
1 files changed, 20 insertions, 0 deletions
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