formatted test-data

This commit is contained in:
Tankred Hase 2013-04-11 09:07:03 +02:00
parent 0b37b40417
commit 2d29aab7cf
1 changed files with 16 additions and 16 deletions

View File

@ -10,8 +10,8 @@ var TestData = function() {
for (i = 0; i < size; i++) {
mail = new app.model.Email({
id: i,
from:'john@from.com',
to:['jack@to.com'],
from: 'john@from.com',
to: ['jack@to.com'],
subject: 'Important stuff ' + i,
sentDate: (1971 + i) + '-03-13 18:17:53',
body: bigAssString
@ -23,7 +23,7 @@ var TestData = function() {
return collection;
};
this.packageCollectionForEncryption= function(collection, keySize, ivSize) {
this.packageCollectionForEncryption = function(collection, keySize, ivSize) {
// package json objects for batch encrytion
var envelope, envelopes = [];
@ -44,7 +44,7 @@ var TestData = function() {
this.generateBigString = function(iterations) {
var test_message = '';
// generate test data
for (var i=0; i < iterations; i++) {
for (var i = 0; i < iterations; i++) {
test_message += 'aslghaksfdhsakjzfgasjfdgsauk';
}