2020-05-09 16:32:43 +00:00
|
|
|
import { getters } from '../../conversationAttributes';
|
|
|
|
|
|
|
|
describe('#getters', () => {
|
|
|
|
it('getConversationParams', () => {
|
|
|
|
const state = {
|
|
|
|
id: 1,
|
2021-07-21 16:32:43 +00:00
|
|
|
status: 'pending',
|
2020-05-09 16:32:43 +00:00
|
|
|
};
|
|
|
|
expect(getters.getConversationParams(state)).toEqual({
|
|
|
|
id: 1,
|
2021-07-21 16:32:43 +00:00
|
|
|
status: 'pending',
|
2020-05-09 16:32:43 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|