prefer TypeScript for tests

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-06-12 20:29:28 +02:00
parent e78108efe2
commit 7b5114a1b8
24 changed files with 5 additions and 1 deletions

View file

@ -15,7 +15,7 @@ const getOrderedLists = createSelector([(state: RootState) => state.lists], list
return lists;
}
return lists.toList().filter(item => !!item).sort((a, b) => (a as ListEntity).title.localeCompare((b as ListEntity).title)).take(4) as ImmutableList<ListEntity>;;
return lists.toList().filter(item => !!item).sort((a, b) => (a as ListEntity).title.localeCompare((b as ListEntity).title)).take(4) as ImmutableList<ListEntity>;
});
const ListPanel = () => {

View file

@ -42,6 +42,8 @@ describe('mutes reducer', () => {
it('should handle MUTES_TOGGLE_HIDE_NOTIFICATIONS', () => {
const state = ImmutableRecord({
new: ImmutableRecord({
isSubmitting: false,
accountId: null,
notifications: true,
})(),
})();
@ -50,6 +52,8 @@ describe('mutes reducer', () => {
};
expect(reducer(state, action).toJS()).toEqual({
new: {
isSubmitting: false,
accountId: null,
notifications: false,
},
});