const should = require('should'); // Stuff we are testing const ampComponentsHelper = require('../../../../core/frontend/apps/amp/lib/helpers/amp_components'); describe('{{amp_components}} helper', function () { it('adds script tag for a gif', function () { const post = { html: 'yoda' }; let rendered; rendered = ampComponentsHelper.call( {relativeUrl: '/post/amp/', safeVersion: '0.3', context: ['amp', 'post'], post: post}, {data: {root: {context: ['amp', 'post']}}}); should.exist(rendered); rendered.should.match(/