text: const logger = require('../auth-api/middleware/logger');
  describe('logger middleware ', ()=> { 
      let consoleSpy; 
      let req = {};
      let res = {};
      let next = jest.fn();
      beforeEach(()=> {
          consoleSpy = jest.spyOn(console, 'log').mockImplementation();
      })
      afterEach(()=> {
          consoleSpy.mockRestore();
      })
  
      it('properly logs some output', ()=> {
          logger(req, res, next);
          expect(consoleSpy).toHaveBeenCalled();
      })
      
      it('moves to the next', ()=> {
          logger(req, res, next);
          expect(next).toHaveBeenCalled()
      })
  })