e534a911f3
Prettier v2 has the following breaking changes: * enforces spaces between `function` and params * enforces trailing commas by default
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
import * as Handlebars from 'handlebars/runtime';
|
|
import hbs from 'handlebars-inline-precompile';
|
|
import { assertEquals } from '../../webpack-test/src/lib/assert';
|
|
|
|
Handlebars.registerHelper('loud', function (text) {
|
|
return text.toUpperCase();
|
|
});
|
|
|
|
const template = hbs`{{loud name}}`;
|
|
const output = template({ name: 'yehuda' });
|
|
|
|
assertEquals(output, 'YEHUDA');
|