By faith Enoch was translated that he should not see death. See Genesis 5:24 Jude 1:14. His faithfulness was rewarded by a translation to heaven without first becoming a victim of death.
For before his translation he had this testimony. The testimony is that he "walked with God", and God took him, because he was pleased with him.