Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 480 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 480 Bytes

Import the helpers and call compileTemplate, passing in the hbs file, and the model. It will automatically register any partials it finds.

import mainTemplate from 'views/pages/home.hbs';
import model from 'models/home';
import Helpers from './test-helpers';

describe('test block', () => {
	const helpers = new Helpers();

	beforeEach(async () => {
		const html = await helpers.compileTemplate({
			mainTemplate,
			model
		});
		document.body.innerHTML = html;
	});
};