text: jest.mock('app/services/Firebase', () => {});
  import thunk from 'redux-thunk';
  import configureMockStore from 'redux-mock-store';
  
  import * as Analytics from 'app/services/Analytics';
  import * as sut from 'app/features/workout/card/expanded/title/EditWorkoutTitleExpandedActions';
  
  const middlewares = [ thunk ];
  const mockStore = configureMockStore(middlewares);
  var logEventSpy = null;
  var store = null;
  
  describe('collapsed card', () => {
      
      beforeEach(() => {
          logEventSpy = jest.spyOn(Analytics, 'logEventWithAppState').mockImplementation(() => {});        
          store = mockStore({
              collapsedSettings: {}
          });
      });
  
      afterEach(() => {
          logEventSpy.mockReset();        
      });
  
      afterAll(() => {
          logEventSpy.mockRestore();
      });   
  
      test('log set id when collapsed', () => {
          const expectedSetID = 1234;
  
          store.dispatch(sut.collapseCard(expectedSetID));
          
          const event = logEventSpy.mock.calls[0][0];
          const params = logEventSpy.mock.calls[0][1];
          expect(event).toEqual('collapsed_card');
          expect(params.set_id).toEqual(expectedSetID);
      });
  
  });
  