* Removed mocking from client tests * Updated Client tests to remove Client.setTeamId * Fixed actions/general.test.js * Updated test/reducer/channel.test.js for the updated store structure * Commented out general reducer tests until the store structure is more finalized * Properly used the team ID when creating a channel
21 lines
534 B
JavaScript
21 lines
534 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,
|
|
team
|
|
} = await TestHelper.initBasic();
|
|
const post = TestHelper.fakePost(channel.id);
|
|
|
|
const rpost = await client.createPost(team.id, post);
|
|
|
|
assert.ok(rpost.id, 'id is empty');
|
|
});
|
|
});
|