diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-26 08:16:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-26 08:16:57 -0400 |
commit | 23ccfc845ca2350075f6027e16c6206fc7b71716 (patch) | |
tree | 3fd1f896a5a24b43913be03b21c85638dd7c356e /webapp/tests/client/client_preferences.test.jsx | |
parent | fe7e9d95b30ae2195fcba68db960866db91ce045 (diff) | |
download | chat-23ccfc845ca2350075f6027e16c6206fc7b71716.tar.gz chat-23ccfc845ca2350075f6027e16c6206fc7b71716.tar.bz2 chat-23ccfc845ca2350075f6027e16c6206fc7b71716.zip |
Move remaining actions over to use redux and v4 endpoints (#6720)
Diffstat (limited to 'webapp/tests/client/client_preferences.test.jsx')
-rw-r--r-- | webapp/tests/client/client_preferences.test.jsx | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/webapp/tests/client/client_preferences.test.jsx b/webapp/tests/client/client_preferences.test.jsx deleted file mode 100644 index 49241c72c..000000000 --- a/webapp/tests/client/client_preferences.test.jsx +++ /dev/null @@ -1,62 +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'; - -describe('Client.Preferences', function() { - test('getAllPreferences', function(done) { - TestHelper.initBasic(done, () => { - TestHelper.basicClient().getAllPreferences( - function(data) { - expect(data[0].category).toBe('tutorial_step'); - expect(data[0].user_id).toEqual(TestHelper.basicUser().id); - done(); - }, - function(err) { - done.fail(new Error(err.message)); - } - ); - }); - }); - - test('savePreferences', function(done) { - TestHelper.initBasic(done, () => { - var perf = {}; - perf.user_id = TestHelper.basicUser().id; - perf.category = 'test'; - perf.name = 'name'; - perf.value = 'value'; - - var perfs = []; - perfs.push(perf); - - TestHelper.basicClient().savePreferences( - perfs, - function(data) { - expect(data).toBe(true); - done(); - }, - function(err) { - done.fail(new Error(err.message)); - } - ); - }); - }); - - test('getPreferenceCategory', function(done) { - TestHelper.initBasic(done, () => { - TestHelper.basicClient().getPreferenceCategory( - 'tutorial_step', - function(data) { - expect(data[0].category).toBe('tutorial_step'); - expect(data[0].user_id).toEqual(TestHelper.basicUser().id); - done(); - }, - function(err) { - done.fail(new Error(err.message)); - } - ); - }); - }); -}); - |