Skip to content

Instantly share code, notes, and snippets.

@ninjascience
Created June 30, 2014 17:23
Show Gist options
  • Save ninjascience/96c23f1cf4a9f32bb139 to your computer and use it in GitHub Desktop.
Save ninjascience/96c23f1cf4a9f32bb139 to your computer and use it in GitHub Desktop.
Mock return object from browse my ballot service
races = {
local: [
{
name: randoRace(),
description: 'What do they do?',
campaigns: [
{
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}
]
},
{
name: randoRace(),
description: 'What do they do?',
campaigns: [
{
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}
]
},
{
name: randoRace(),
description: 'What do they do?',
campaigns: [
{
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}, {
id: _.uniqueId(),
name: chance.name(),
party: 'Independent',
total: chance.integer({min: 3000, max: 13000}),
grassrootsPercent: Math.random(),
localPercent: Math.random()
}
]
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment