score:0

describe('authenticated users', () => {
    test('should contain authLinks', () => {
        store.dispatch({ type: 'LOGIN_SUCCESS', payload: { isAuthenticated: true } });
        render(
            <Provider store={store}>
                <Router>
                    <Navbar />
                </Router>
            </Provider>
        );
        const authLinks = screen.getByTestId('authLinks');
    });
});

Related Query

More Query from same tag