Files
mattermost/webapp/tests/client/client_general.test.jsx
Harrison Healey fb6f2a123c PLT-5860 Updated copyright date (#6058)
* PLT-5860 Updated copyright date in about modal

* PLT-5860 Updated copyright notice in JSX files

* PLT-5860 Updated copyright notice in go files

* Fixed misc copyright dates

* Fixed component snapshots
2017-04-12 08:27:57 -04:00

45 lines
1.3 KiB
JavaScript

// 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.General', function() {
test('General.getClientConfig', function(done) {
TestHelper.initBasic(done, () => {
TestHelper.basicClient().getClientConfig(
function(data) {
expect(data.SiteName).toEqual('Mattermost');
done();
},
function(err) {
done.fail(new Error(err.message));
}
);
});
});
test('General.getPing', function(done) {
TestHelper.initBasic(done, () => {
TestHelper.basicClient().getPing(
function(data) {
expect(data.version.length).toBeGreaterThan(0);
done();
},
function(err) {
done.fail(new Error(err.message));
}
);
});
});
test('General.logClientError', function(done) {
TestHelper.initBasic(done, () => {
var config = {};
config.site_name = 'test';
TestHelper.basicClient().logClientError('this is a test');
done();
});
});
});