summaryrefslogtreecommitdiffstats
path: root/webapp/tests/client/client_oauth.test.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-06-26 08:16:57 -0400
committerGitHub <noreply@github.com>2017-06-26 08:16:57 -0400
commit23ccfc845ca2350075f6027e16c6206fc7b71716 (patch)
tree3fd1f896a5a24b43913be03b21c85638dd7c356e /webapp/tests/client/client_oauth.test.jsx
parentfe7e9d95b30ae2195fcba68db960866db91ce045 (diff)
downloadchat-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_oauth.test.jsx')
-rw-r--r--webapp/tests/client/client_oauth.test.jsx50
1 files changed, 0 insertions, 50 deletions
diff --git a/webapp/tests/client/client_oauth.test.jsx b/webapp/tests/client/client_oauth.test.jsx
deleted file mode 100644
index 44ce95a19..000000000
--- a/webapp/tests/client/client_oauth.test.jsx
+++ /dev/null
@@ -1,50 +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.OAuth', function() {
- test('registerOAuthApp', function(done) {
- TestHelper.initBasic(done, () => {
- TestHelper.basicClient().enableLogErrorsToConsole(false); // Disabling since this unit test causes an error
-
- var app = {};
- app.name = 'test';
- app.homepage = 'homepage';
- app.description = 'desc';
- app.callback_urls = [''];
-
- TestHelper.basicClient().registerOAuthApp(
- app,
- function() {
- done.fail(new Error('not enabled'));
- },
- function(err) {
- expect(err.id).toBe('api.oauth.register_oauth_app.turn_off.app_error');
- done();
- }
- );
- });
- });
-
- test('allowOAuth2', function(done) {
- TestHelper.initBasic(done, () => {
- TestHelper.basicClient().enableLogErrorsToConsole(false); // Disabling since this unit test causes an error
-
- TestHelper.basicClient().allowOAuth2(
- 'GET',
- '12345678901234567890123456',
- 'http://nowhere.com',
- 'state',
- 'scope',
- function() {
- done.fail(new Error('not enabled'));
- },
- function(err) {
- expect(err.id).toBe('api.oauth.allow_oauth.turn_off.app_error');
- done();
- }
- );
- });
- });
-});