summaryrefslogtreecommitdiffstats
path: root/webapp/tests/client_preferences.test.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/tests/client_preferences.test.jsx')
-rw-r--r--webapp/tests/client_preferences.test.jsx65
1 files changed, 0 insertions, 65 deletions
diff --git a/webapp/tests/client_preferences.test.jsx b/webapp/tests/client_preferences.test.jsx
deleted file mode 100644
index 95b026bfc..000000000
--- a/webapp/tests/client_preferences.test.jsx
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import assert from 'assert';
-import TestHelper from './test_helper.jsx';
-
-describe('Client.Preferences', function() {
- this.timeout(100000);
-
- it('getAllPreferences', function(done) {
- TestHelper.initBasic(() => {
- TestHelper.basicClient().getAllPreferences(
- function(data) {
- assert.equal(data[0].category, 'tutorial_step');
- assert.equal(data[0].user_id, TestHelper.basicUser().id);
- done();
- },
- function(err) {
- done(new Error(err.message));
- }
- );
- });
- });
-
- it('savePreferences', function(done) {
- TestHelper.initBasic(() => {
- 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) {
- assert.equal(data, true);
- done();
- },
- function(err) {
- done(new Error(err.message));
- }
- );
- });
- });
-
- it('getPreferenceCategory', function(done) {
- TestHelper.initBasic(() => {
- TestHelper.basicClient().getPreferenceCategory(
- 'tutorial_step',
- function(data) {
- assert.equal(data[0].category, 'tutorial_step');
- assert.equal(data[0].user_id, TestHelper.basicUser().id);
- done();
- },
- function(err) {
- done(new Error(err.message));
- }
- );
- });
- });
-});
-