mattermost-mobile/test/client/client_post.test.js
Harrison Healey 543ccb8fe6 Switched client.js to fully use Promises (#23)
* Made sanity tests run without an internet connection

* Removed onRequest parameter from Client methods

* Switched client.js to fully use Promises

* Fix mock response for login

* Fixed test_helper.js to actually use the configured url
2016-10-18 10:46:30 -04:00

17 lines
473 B
JavaScript

// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import assert from 'assert';
import TestHelper from 'test_helper.js';
describe('Client.Post', () => {
it('createPost', async () => {
const {client, channel} = await TestHelper.initBasic();
const post = TestHelper.fakePost(channel.id);
const rpost = await client.createPost(post);
assert.ok(rpost.id, 'id is empty');
});
});