edc65b5c19
Third part of reorganizing and cleaning up test-folders.
13 lines
365 B
JavaScript
13 lines
365 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');
|