mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-09 12:40:12 +00:00
21 lines
712 B
JavaScript
21 lines
712 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import assert from 'assert';
|
|
|
|
import * as Actions from 'app/actions/views/select_server';
|
|
import configureStore from 'app/store';
|
|
|
|
import TestHelper from 'test/test_helper';
|
|
|
|
describe('Actions.Views.SelectServer', () => {
|
|
it('handleServerUrlChanged', async () => {
|
|
const store = configureStore();
|
|
await TestHelper.wait();
|
|
|
|
await Actions.handleServerUrlChanged('https://mattermost.example.com')(store.dispatch, store.getState);
|
|
const serverUrl = store.getState().views.selectServer.serverUrl;
|
|
assert.equal('https://mattermost.example.com', serverUrl);
|
|
});
|
|
});
|