Make template variables work in row titles, #1956

This commit is contained in:
Torkel Ödegaard
2015-06-11 09:35:59 +02:00
parent 3675b3fcaa
commit e5280d55b3
5 changed files with 25 additions and 30 deletions

View File

@@ -135,6 +135,11 @@ define([
expect(ctx.rows[1].repeat).to.be(null);
});
it('should add scopedVars to rows', function() {
expect(ctx.rows[0].scopedVars.servers.value).to.be('se1');
expect(ctx.rows[1].scopedVars.servers.value).to.be('se2');
});
it('should generate a repeartRowId based on repeat row index', function() {
expect(ctx.rows[1].repeatRowId).to.be(1);
});