From 51934e1b94d721dde9ba14755e5b968e50c4931d Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Thu, 5 Jan 2012 00:26:16 +0000 Subject: [PATCH] [demo,test][xs]: add id to all rows/documents in fixture data for local backend data. --- demo/js/app.js | 12 ++++++------ test/model.test.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/demo/js/app.js b/demo/js/app.js index 54eef6fe..be54fe0f 100755 --- a/demo/js/app.js +++ b/demo/js/app.js @@ -27,12 +27,12 @@ function demoDataset() { var indata = { headers: ['x', 'y', 'z'] , rows: [ - {x: 1, y: 2, z: 3} - , {x: 2, y: 4, z: 6} - , {x: 3, y: 6, z: 9} - , {x: 4, y: 8, z: 12} - , {x: 5, y: 10, z: 15} - , {x: 6, y: 12, z: 18} + {id: 0, x: 1, y: 2, z: 3} + , {id: 1, x: 2, y: 4, z: 6} + , {id: 2, x: 3, y: 6, z: 9} + , {id: 3, x: 4, y: 8, z: 12} + , {id: 4, x: 5, y: 10, z: 15} + , {id: 5, x: 6, y: 12, z: 18} ] }; // this is all rather artificial here but would make more sense with more complex backend diff --git a/test/model.test.js b/test/model.test.js index 12e740bd..c8480672 100644 --- a/test/model.test.js +++ b/test/model.test.js @@ -12,12 +12,12 @@ test('new Dataset', function () { var indata = { headers: ['x', 'y', 'z'] , rows: [ - {x: 1, y: 2, z: 3} - , {x: 2, y: 4, z: 6} - , {x: 3, y: 6, z: 9} - , {x: 4, y: 8, z: 12} - , {x: 5, y: 10, z: 15} - , {x: 6, y: 12, z: 18} + {id: 0, x: 1, y: 2, z: 3} + , {id: 1, x: 2, y: 4, z: 6} + , {id: 2, x: 3, y: 6, z: 9} + , {id: 3, x: 4, y: 8, z: 12} + , {id: 4, x: 5, y: 10, z: 15} + , {id: 5, x: 6, y: 12, z: 18} ] }; // this is all rather artificial here but would make more sense with more complex backend