|
@@ -68,7 +68,7 @@ describe('Actions', () => {
|
|
|
});
|
|
|
|
|
|
describe('setTopicsSearchAction', () => {
|
|
|
- it('creartes SET_TOPICS_SEARCH', () => {
|
|
|
+ it('creates SET_TOPICS_SEARCH', () => {
|
|
|
expect(actions.setTopicsSearchAction('test')).toEqual({
|
|
|
type: 'SET_TOPICS_SEARCH',
|
|
|
payload: 'test',
|
|
@@ -77,7 +77,7 @@ describe('Actions', () => {
|
|
|
});
|
|
|
|
|
|
describe('setTopicsOrderByAction', () => {
|
|
|
- it('creartes SET_TOPICS_ORDER_BY', () => {
|
|
|
+ it('creates SET_TOPICS_ORDER_BY', () => {
|
|
|
expect(actions.setTopicsOrderByAction(TopicColumnsToSort.NAME)).toEqual({
|
|
|
type: 'SET_TOPICS_ORDER_BY',
|
|
|
payload: TopicColumnsToSort.NAME,
|
|
@@ -87,10 +87,12 @@ describe('Actions', () => {
|
|
|
|
|
|
describe('topic messages', () => {
|
|
|
it('creates ADD_TOPIC_MESSAGE', () => {
|
|
|
- expect(actions.addTopicMessage(topicMessagePayload)).toEqual({
|
|
|
- type: 'ADD_TOPIC_MESSAGE',
|
|
|
- payload: topicMessagePayload,
|
|
|
- });
|
|
|
+ expect(actions.addTopicMessage({ message: topicMessagePayload })).toEqual(
|
|
|
+ {
|
|
|
+ type: 'ADD_TOPIC_MESSAGE',
|
|
|
+ payload: { message: topicMessagePayload },
|
|
|
+ }
|
|
|
+ );
|
|
|
});
|
|
|
|
|
|
it('creates RESET_TOPIC_MESSAGES', () => {
|