From 32af48e442a960b8c3f199f5ffad28a34590fcda Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Apr 2011 13:28:55 +0200 Subject: Reformatting to MoFo coding style --- tests/test-logger.js | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'tests/test-logger.js') diff --git a/tests/test-logger.js b/tests/test-logger.js index 2b087f8..d814838 100644 --- a/tests/test-logger.js +++ b/tests/test-logger.js @@ -6,34 +6,34 @@ var logMod = require("logger"); var selfMod = require("self"); var testGenerateTimeSheetDataLogs = { - "2010-07-27+bugzilla.redhat.com+533567": { - "date": "2010-07-27T21:28:47.103Z", - "url": "https://bugzilla.redhat.com/show_bug.cgi?id=533567", - "title": "KMS:RS480:X200M - GPU lockup (screen goes black)", - "comment": "removing filled in chip type for Guadec" + "2010-07-27+bugzilla.redhat.com+533567" : { + "date" : "2010-07-27T21:28:47.103Z", + "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=533567", + "title" : "KMS:RS480:X200M - GPU lockup (screen goes black)", + "comment" : "removing filled in chip type for Guadec" }, - "2010-07-27+bugzilla.redhat.com+618769": { - "date": "2010-07-27T21:30:18.845Z", - "url": "https://bugzilla.redhat.com/show_bug.cgi?id=618769", - "title": "gdm and display unstable with ATI FirePro V3700 graphics card", - "comment": "asking for logs" + "2010-07-27+bugzilla.redhat.com+618769" : { + "date" : "2010-07-27T21:30:18.845Z", + "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=618769", + "title" : "gdm and display unstable with ATI FirePro V3700 graphics card", + "comment" : "asking for logs" } }; -var testGenerateTimeSheetResultStr = "\n\n"+ - "TimeSheet-2011-04-17\n\n\n

TimeSheet

\n"+ - "

2010-07-27

\n

"+ - "Bug RH/533567: "+ - "KMS:RS480:X200M - GPU lockup (screen goes black) \n
removing filled "+ - "in chip type for Guadec

\n

Bug RH/618769: "+ - "gdm and display unstable with ATI FirePro V3700 graphics card \n"+ - "
asking for logs

\n"; +var testGenerateTimeSheetResultStr = "\n\n" + + "TimeSheet-2011-04-17\n\n\n

TimeSheet

\n" + + "

2010-07-27

\n

" + + "Bug RH/533567: " + + "KMS:RS480:X200M - GPU lockup (screen goes black) \n
removing filled " + + "in chip type for Guadec

\n

Bug RH/618769: " + + "gdm and display unstable with ATI FirePro V3700 graphics card \n" + + "
asking for logs

\n"; -exports.ensureTimeSheetRecordsPrinter = function (test) { - logMod.initialize(JSON.parse(selfMod.data.load( - "bugzillalabelAbbreviations.json"))) - test.assertEqual(logMod.timeSheetRecordsPrinter(testGenerateTimeSheetDataLogs, - new Date("2011-04-17")), testGenerateTimeSheetResultStr, - "Generates correct log report from given data."); +exports.ensureTimeSheetRecordsPrinter = function(test) { + logMod.initialize(JSON.parse(selfMod.data + .load("bugzillalabelAbbreviations.json"))); + test.assertEqual(logMod.timeSheetRecordsPrinter( + testGenerateTimeSheetDataLogs, new Date("2011-04-17")), + testGenerateTimeSheetResultStr, + "Generates correct log report from given data."); }; - -- cgit