text: import React from 'react';
  import ReactDOM from 'react-dom';
  import { mount } from 'enzyme';
  import configureStore from 'redux-mock-store';
  
  import LoginButton from './LoginButton';
  
  describe('LoginButton tests', () => {
    let mockStore = configureStore();
    let initialState = {
      user: {
        isLoggedIn: false,
      },
    };
  
    it('renders the signin button when the user is not logged in', () => {
      let store = mockStore(initialState);
      let wrapper = mount(<LoginButton store={store} />);
      expect(wrapper.find('a[data-hook="signin"]').length).toEqual(1);
      expect(wrapper.find('a[data-hook="devlocal-signin"]').length).toEqual(0);
    });
  
    it('renders the devlocal signin button when running in development', () => {
      let store = mockStore(
        Object.assign({}, initialState, { isDevelopment: true }),
      );
      let wrapper = mount(<LoginButton store={store} />);
      expect(wrapper.find('a[data-hook="signin"]').length).toEqual(1);
      expect(wrapper.find('a[data-hook="devlocal-signin"]').length).toEqual(1);
    });
  });
  