refactor: better variable names
This commit is contained in:
@@ -83,14 +83,14 @@ describe('#actions', () => {
|
||||
inReplyTo: {},
|
||||
},
|
||||
},
|
||||
{ key: 45534, inReplyTo: 24332 }
|
||||
{ conversationId: 45534, inReplyToMessage: 24332 }
|
||||
);
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[
|
||||
types.SET_IN_REPLY_TO,
|
||||
{
|
||||
key: 45534,
|
||||
inReplyTo: 24332,
|
||||
conversationId: 45534,
|
||||
inReplyToMessage: 24332,
|
||||
},
|
||||
],
|
||||
]);
|
||||
@@ -106,13 +106,13 @@ describe('#actions', () => {
|
||||
inReplyTo: {},
|
||||
},
|
||||
},
|
||||
{ key: 45534 }
|
||||
{ conversationId: 45534 }
|
||||
);
|
||||
expect(commit.mock.calls).toEqual([
|
||||
[
|
||||
types.REMOVE_IN_REPLY_TO,
|
||||
{
|
||||
key: 45534,
|
||||
conversationId: 45534,
|
||||
},
|
||||
],
|
||||
]);
|
||||
|
||||
@@ -37,8 +37,8 @@ describe('#mutations', () => {
|
||||
inReplyTo: {},
|
||||
};
|
||||
mutations[types.SET_IN_REPLY_TO](state, {
|
||||
key: 1234,
|
||||
inReplyTo: 9876,
|
||||
conversationId: 1234,
|
||||
inReplyToMessage: 9876,
|
||||
});
|
||||
expect(state.inReplyTo).toEqual({
|
||||
1234: 9876,
|
||||
@@ -54,7 +54,7 @@ describe('#mutations', () => {
|
||||
},
|
||||
};
|
||||
mutations[types.REMOVE_IN_REPLY_TO](state, {
|
||||
key: 1234,
|
||||
conversationId: 1234,
|
||||
});
|
||||
expect(state.inReplyTo).toEqual({});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user