{"size": 573, "ext": "js", "max_stars_repo_path": "test/helpers/concat.js", "max_stars_repo_name": "bc-ejoe/paper", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/helpers/concat.js", "max_issues_repo_name": "bc-ejoe/paper", "max_issues_repo_issues_event_min_datetime": "2022-03-02T05:02:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-02T05:02:56.000Z", "max_forks_repo_path": "node_modules/@bigcommerce/stencil-paper/test/helpers/concat.js", "max_forks_repo_name": "joeseckelman/bct", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 23.875, "max_line_length": 91, "alphanum_fraction": 0.5881326353}
var Code = require('code'),
    Lab = require('lab'),
    Paper = require('../../index'),
    lab = exports.lab = Lab.script(),
    describe = lab.experiment,
    expect = Code.expect,
    it = lab.it;

function c(template, context) {
    return new Paper().loadTemplatesSync({template: template}).render('template', context);
}

describe('concat helper', function() {

    it('should concatanate two strings', function(done) {

        expect(c('{{concat var1 var2}}', {var1: 'hello', var2: 'world'}))
            .to.be.equal('helloworld');

        done();
    });
});

