From 23ccfc845ca2350075f6027e16c6206fc7b71716 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Mon, 26 Jun 2017 08:16:57 -0400
Subject: Move remaining actions over to use redux and v4 endpoints (#6720)

---
 webapp/tests/client/client_emoji.test.jsx | 102 ------------------------------
 1 file changed, 102 deletions(-)
 delete mode 100644 webapp/tests/client/client_emoji.test.jsx

(limited to 'webapp/tests/client/client_emoji.test.jsx')

diff --git a/webapp/tests/client/client_emoji.test.jsx b/webapp/tests/client/client_emoji.test.jsx
deleted file mode 100644
index 8946a5ccc..000000000
--- a/webapp/tests/client/client_emoji.test.jsx
+++ /dev/null
@@ -1,102 +0,0 @@
-// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import TestHelper from 'tests/helpers/client-test-helper.jsx';
-
-const fs = require('fs');
-
-describe('Client.Emoji', function() {
-    const testGifFileName = 'testEmoji.gif';
-
-    beforeAll(function() {
-        // write a temporary file so that we have something to upload for testing
-        const buffer = new Buffer('R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=', 'base64');
-        const testGif = fs.openSync(testGifFileName, 'w+');
-        fs.writeFileSync(testGif, buffer);
-    });
-
-    afterAll(function() {
-        fs.unlinkSync(testGifFileName);
-    });
-
-    test('addEmoji', function(done) {
-        TestHelper.initBasic(done, () => {
-            const name = TestHelper.generateId();
-
-            TestHelper.basicClient().addEmoji(
-                {creator_id: TestHelper.basicUser().id, name},
-                fs.createReadStream(testGifFileName),
-                function(data) {
-                    expect(data.name).toEqual(name);
-                    expect(data.id).not.toBeNull();
-
-                    //TestHelper.basicClient().deleteEmoji(data.id);
-                    done();
-                },
-                function(err) {
-                    done.fail(new Error(err.message));
-                }
-            );
-        });
-    });
-
-    test('deleteEmoji', function(done) {
-        TestHelper.initBasic(done, () => {
-            TestHelper.basicClient().addEmoji(
-                {creator_id: TestHelper.basicUser().id, name: TestHelper.generateId()},
-                fs.createReadStream(testGifFileName),
-                function(data) {
-                    TestHelper.basicClient().deleteEmoji(
-                        data.id,
-                        function() {
-                            done();
-                        },
-                        function(err) {
-                            done.fail(new Error(err.message));
-                        }
-                    );
-                },
-                function(err) {
-                    done.fail(new Error(err.message));
-                }
-            );
-        });
-    });
-
-    test('listEmoji', function(done) {
-        TestHelper.initBasic(done, () => {
-            const name = TestHelper.generateId();
-            TestHelper.basicClient().addEmoji(
-                {creator_id: TestHelper.basicUser().id, name},
-                fs.createReadStream(testGifFileName),
-                function() {
-                    TestHelper.basicClient().listEmoji(
-                        function(data) {
-                            expect(data.length).toBeGreaterThan(0);
-
-                            let found = false;
-                            for (const emoji of data) {
-                                if (emoji.name === name) {
-                                    found = true;
-                                    break;
-                                }
-                            }
-
-                            if (found) {
-                                done();
-                            } else {
-                                done.fail(new Error('test emoji wasn\'t returned'));
-                            }
-                        },
-                        function(err) {
-                            done.fail(new Error(err.message));
-                        }
-                    );
-                },
-                function(err) {
-                    done.fail(new Error(err.message));
-                }
-            );
-        });
-    });
-});
-- 
cgit v1.2.3-1-g7c22

