import { setUserLoginResponse } from "../../../Redux/User/actions"
import { userReducer } from "../../../Redux/User/reducer"





describe('User Redux', () => {
    it('should set the login response', () => {
        expect(userReducer(undefined, setUserLoginResponse({
            email: 'testEmail',
            firstName: 'firstName',
            id: 4,
            lastName: 'test',
            username: 'testuser'
        })))
            .toStrictEqual({
                response: {
                    email: 'testEmail',
                    firstName: 'firstName',
                    id: 4,
                    lastName: 'test',
                    username: 'testuser'
                }
            })
    })
})
