summaryrefslogtreecommitdiffstats
path: root/ddl_builder/qunit/headerNames.js
blob: d8107ad4832ef150c8eb9445394d2868e788cea0 (plain)
1
2
3
4
5
6
7
8
define(["jQuery","QUnit", "DDLBuilder/ddl_builder"], function ($,QUnit,DDLBuilder) {

	return function (id,headers) {
		var ddl_builder = new DDLBuilder({ddlTemplate: "{{#each_with_index columns}}{{#if index}},{{/if}}{{name}}{{/each_with_index}}}"});
		QUnit.equal(ddl_builder.parse($("#" + id).html()), headers, "Finding header names");
	};
	
});