const extractHTMLComments = require('./extract-html-comments'); const someHTML = ` Some text `; describe('extractHTMLComments', () => { it('should return an object with comment keys and count values', () => { const commentCounts = { 'a comment': 2, 'another comment': 1 }; expect(extractHTMLComments(someHTML)).toEqual(commentCounts); }); });