aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-logger.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 13:28:55 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:47:40 +0200
commit55d9a312fbba91f1bcf5e3f3291b7bece8abb178 (patch)
treebb9ef165b425273da47aa000268395f87f26678e /tests/test-logger.js
parent34bbe8e7306a0d0ec014db7512788ed92c625d19 (diff)
downloadbugzilla-triage-55d9a312fbba91f1bcf5e3f3291b7bece8abb178.tar.gz
Reformatting to MoFo coding style
Diffstat (limited to 'tests/test-logger.js')
-rw-r--r--tests/test-logger.js52
1 files changed, 26 insertions, 26 deletions
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 = "<!DOCTYPE html><html><head>\n<meta charset='utf-8'/>\n"+
- "<title>TimeSheet-2011-04-17</title>\n</head>\n<body>\n<h1>TimeSheet</h1>\n"+
- "<hr/><p><strong>2010-07-27</strong></p>\n<p><em>"+
- "<a href='https://bugzilla.redhat.com/show_bug.cgi?id=533567'>Bug RH/533567: "+
- "KMS:RS480:X200M - GPU lockup (screen goes black)</a> </em>\n<br/>removing filled "+
- "in chip type for Guadec</p>\n<p><em><a "+
- "href='https://bugzilla.redhat.com/show_bug.cgi?id=618769'>Bug RH/618769: "+
- "gdm and display unstable with ATI FirePro V3700 graphics card</a> </em>\n"+
- "<br/>asking for logs</p>\n</body></html>";
+var testGenerateTimeSheetResultStr = "<!DOCTYPE html><html><head>\n<meta charset='utf-8'/>\n"
+ + "<title>TimeSheet-2011-04-17</title>\n</head>\n<body>\n<h1>TimeSheet</h1>\n"
+ + "<hr/><p><strong>2010-07-27</strong></p>\n<p><em>"
+ + "<a href='https://bugzilla.redhat.com/show_bug.cgi?id=533567'>Bug RH/533567: "
+ + "KMS:RS480:X200M - GPU lockup (screen goes black)</a> </em>\n<br/>removing filled "
+ + "in chip type for Guadec</p>\n<p><em><a "
+ + "href='https://bugzilla.redhat.com/show_bug.cgi?id=618769'>Bug RH/618769: "
+ + "gdm and display unstable with ATI FirePro V3700 graphics card</a> </em>\n"
+ + "<br/>asking for logs</p>\n</body></html>";
-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.");
};
-