UNPKG

grunt

Version:

A task-based command line build tool for JavaScript projects.

13 lines (11 loc) 368 B
exports['concat'] = function(test) { test.expect(1); task.registerHelper('test_helper', function(a, b) { return a + b; }); var files = [ 'test/fixtures/a.js', '<test_helper:x:y>', 'test/fixtures/b.js' ]; test.equal(task.helper('concat', files), 'var a = 1;\n\nxy\nvar b = 2;\n', 'It should concatenate files and directives.'); test.done(); };