diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-26 07:58:24 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-26 07:58:24 -0400 |
commit | 335e5cc4dac6e9caeb6797fb4ce0185245b4c4df (patch) | |
tree | 0942a785e0b147355aa80d39ddf9417aa91788e7 /webapp/tests/client_oauth.test.jsx | |
parent | 56cca6be7cb3e15a99960c4e6c931081fd157d68 (diff) | |
download | chat-335e5cc4dac6e9caeb6797fb4ce0185245b4c4df.tar.gz chat-335e5cc4dac6e9caeb6797fb4ce0185245b4c4df.tar.bz2 chat-335e5cc4dac6e9caeb6797fb4ce0185245b4c4df.zip |
Moving tests to javascript client (#3108)
Diffstat (limited to 'webapp/tests/client_oauth.test.jsx')
-rw-r--r-- | webapp/tests/client_oauth.test.jsx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/webapp/tests/client_oauth.test.jsx b/webapp/tests/client_oauth.test.jsx deleted file mode 100644 index a9a6bd919..000000000 --- a/webapp/tests/client_oauth.test.jsx +++ /dev/null @@ -1,53 +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.OAuth', function() { - this.timeout(100000); - - it('registerOAuthApp', function(done) { - TestHelper.initBasic(() => { - 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(new Error('not enabled')); - }, - function(err) { - assert.equal(err.id, 'api.oauth.register_oauth_app.turn_off.app_error'); - done(); - } - ); - }); - }); - - it('allowOAuth2', function(done) { - TestHelper.initBasic(() => { - TestHelper.basicClient().enableLogErrorsToConsole(false); // Disabling since this unit test causes an error - - TestHelper.basicClient().allowOAuth2( - 'GET', - '123456', - 'http://nowhere.com', - 'state', - 'scope', - function() { - done(new Error('not enabled')); - }, - function(err) { - assert.equal(err.id, 'api.oauth.allow_oauth.turn_off.app_error'); - done(); - } - ); - }); - }); -}); |