Fix various issues

This commit is contained in:
seavor 2026-04-12 13:58:51 -05:00
parent 3001925430
commit c3ae4cffd6
21 changed files with 130 additions and 121 deletions

View file

@ -120,7 +120,7 @@ describe('Actions', () => {
});
it('registrationSuccess', () => {
expect(Actions.registrationSuccess()).toEqual({ type: Types.REGISTRATION_SUCCES });
expect(Actions.registrationSuccess()).toEqual({ type: Types.REGISTRATION_SUCCESS });
});
it('registrationFailed', () => {
@ -203,14 +203,6 @@ describe('Actions', () => {
expect(Actions.accountImageChanged(user)).toEqual({ type: Types.ACCOUNT_IMAGE_CHANGED, user });
});
it('directMessageSent', () => {
expect(Actions.directMessageSent('Eve', 'hi')).toEqual({
type: Types.DIRECT_MESSAGE_SENT,
userName: 'Eve',
message: 'hi',
});
});
it('getUserInfo', () => {
const userInfo = makeUser({ name: 'Frank' });
expect(Actions.getUserInfo(userInfo)).toEqual({ type: Types.GET_USER_INFO, userInfo });
@ -353,4 +345,9 @@ describe('Actions', () => {
it('deckDelete', () => {
expect(Actions.deckDelete(42)).toEqual({ type: Types.DECK_DELETE, deckId: 42 });
});
it('gamesOfUser', () => {
const games = [{ gameId: 1 }] as any;
expect(Actions.gamesOfUser('alice', games)).toEqual({ type: Types.GAMES_OF_USER, userName: 'alice', games });
});
});