text: const userClassDoneController = require('../controllers/userClassDoneController');
  
  const userClassDoneA = {classId:2, percentDone:0, userId:0};
  const userClassDoneB = {classId:3, percentDone:0, userId:0};
  const userClassDoneC = {classId:6, percentDone:0, userId:0};
  
  test('Deve salvar uma nova aula concluida ', async () => {
      await userClassDoneController.store(userClassDoneA);
      await userClassDoneController.store(userClassDoneB);
      const result = await userClassDoneController.store(userClassDoneC);
      expect(result.id).toBeGreaterThan(1);
  });
  
  test('Deve dar um like para a primeira postagem ', async () => {
      const postagem = await userClassDoneController.index('all');
      const totalLikesBefore = postagem.result[0].likes;
      await userClassDoneController.update(postagem.result[0].id);
      const postagens = await userClassDoneController.index('all');
      const totalLikesAfter = postagens.result[0].likes;
      expect(totalLikesAfter).toBeGreaterThan(totalLikesBefore);
  });