Skip to content

Commit

Permalink
fix some wrong titles from queryReducer tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankPairs committed Feb 6, 2019
1 parent c89c6c5 commit 84192a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('Query Reducer', () => {
);
assert.deepEqual(updatedState, { sort: 'foo', order: SORT_DESC, page: 1 });
});
it('should set order with the opposite order sort value is the same llke the previous state', () => {
it("should set order as the opposite of the one in previous state when sort hasn't change", () => {
const updatedState = queryReducer(
{
sort: 'foo', order: SORT_DESC, page: 1
Expand All @@ -99,7 +99,7 @@ describe('Query Reducer', () => {
);
assert.deepEqual(updatedState, { sort: 'foo', order: SORT_ASC, page: 1 });
});
it('should set order with the opposite order sort value is the same llke the previous state even when we pass a specific order', () => {
it("should set order as the opposite of the one in previous state even if order is specified in the payload when sort hasn't change", () => {
const updatedState = queryReducer(
{
sort: 'foo', order: SORT_DESC, page: 1
Expand Down

0 comments on commit 84192a8

Please sign in to comment.