describe(`utils helpers`, () => { test(`should compile headings helper`, () => { expect(Handlebars.helpers.heading.call(this, 2)).toEqual('##'); }); test(`should compile stripLineBreaks helper`, () => { const result = Handlebars.helpers.stripLineBreaks.call('line 1\n line2\n'); expect(result).toMatchSnapshot('line 1 line2'); }); test(`should compile spaces helper`, () => { const result = Handlebars.helpers.spaces.call(this, 3); expect(result).toEqual('!spaces '); }); });