text: import activeTodos from '../functions/filter/activeTodos';
  
  const todos = [
    {
      description: 'coding javascript',
      dueDate: '2020-09-17T14:39',
      id: 0,
      priority: '5',
      selectProject: 'work',
      status: true,
      title: 'coding',
    },
    {
      description: 'project power',
      dueDate: '2020-09-08T14:58',
      id: 1,
      priority: '1',
      selectProject: 'personal',
      status: false,
      title: 'watching film',
    },
    {
      description: 'plates in kitchen',
      dueDate: '2020-09-09T14:58',
      id: 2,
      priority: '3',
      selectProject: 'chore',
      status: true,
      title: 'wash plates',
    },
    {
      description: 'play pes or chess',
      dueDate: '2020-09-25T14:59',
      id: 3,
      priority: '2',
      selectProject: 'personal',
      status: true,
      title: 'play game',
    },
    {
      description: 'learn react',
      dueDate: '2020-09-15T15:00',
      id: 4,
      priority: '4',
      selectProject: 'work',
      status: false,
      title: 'react',
    },
  ];
  
  const newTodos = [
    {
      description: 'coding javascript',
      dueDate: '2020-09-17T14:39',
      id: 0,
      priority: '5',
      selectProject: 'work',
      status: true,
      title: 'coding',
    },
    {
      description: 'play pes or chess',
      dueDate: '2020-09-25T14:59',
      id: 3,
      priority: '2',
      selectProject: 'personal',
      status: true,
      title: 'play game',
    },
    {
      description: 'learn react',
      dueDate: '2020-09-15T15:00',
      id: 4,
      priority: '4',
      selectProject: 'work',
      status: false,
      title: 'react',
    },
  ];
  
  test('activeTodos function exists', () => {
    expect(activeTodos).toBeDefined();
  });
  
  test('return type of activeTodos is a function', () => {
    expect(typeof activeTodos).toBe('function');
  });
  
  test('activeTodos filters todos by todos whose time greater than current date', () => {
    Date.now = jest.fn(() => new Date('2020-09-10T14:58'));
    expect(activeTodos(todos)).toEqual(newTodos);
  });
  