Add helpful id on test data for debugging.
Showing
1 changed file
with
2 additions
and
0 deletions
... | @@ -17,6 +17,7 @@ describe('RelativePlacement algo', () => { | ... | @@ -17,6 +17,7 @@ describe('RelativePlacement algo', () => { |
17 | * @param {Number} id | 17 | * @param {Number} id |
18 | */ | 18 | */ |
19 | (testData,id) => { | 19 | (testData,id) => { |
20 | testData.id = id; | ||
20 | it('#'+id+': '+(testData.comment||''), ()=>{ | 21 | it('#'+id+': '+(testData.comment||''), ()=>{ |
21 | var votes = compileVotes(testData); | 22 | var votes = compileVotes(testData); |
22 | 23 | ||
... | @@ -33,6 +34,7 @@ describe('RelativePlacement algo', () => { | ... | @@ -33,6 +34,7 @@ describe('RelativePlacement algo', () => { |
33 | /** | 34 | /** |
34 | * @name TestData | 35 | * @name TestData |
35 | * @typedef Object | 36 | * @typedef Object |
37 | * @property {Number} id | ||
36 | * @property {String} comment | 38 | * @property {String} comment |
37 | * @property {Array[]}votes | 39 | * @property {Array[]}votes |
38 | * @property {String[]} result | 40 | * @property {String[]} result | ... | ... |
-
Please register or sign in to post a comment