From f701fdc13270baee131c4cf75957bd354ea8eff0 Mon Sep 17 00:00:00 2001 From: Steve Conover Date: Mon, 28 Feb 2011 15:34:32 -0800 Subject: [PATCH] needful --- spec/suites/TrivialNodeReporterSpec.js | 10 +++++----- src/node/TrivialNodeReporter.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/suites/TrivialNodeReporterSpec.js b/spec/suites/TrivialNodeReporterSpec.js index fe82d03..359d5bd 100644 --- a/spec/suites/TrivialNodeReporterSpec.js +++ b/spec/suites/TrivialNodeReporterSpec.js @@ -125,9 +125,9 @@ describe("TrivialNodeReporter", function() { }); it("prints the elapsed time in the summary message", function(){ - this.reporter.now = function(){return 1000} + this.reporter.now = function(){return 1000;}; this.reporter.reportRunnerStarting(); - this.reporter.now = function(){return 1777} + this.reporter.now = function(){return 1777;}; this.reporter.reportRunnerResults(passingRun); expect(this.fakeSys.getOutput()).toContain("0.777 seconds"); }); @@ -137,7 +137,7 @@ describe("TrivialNodeReporter", function() { function run(startTime, endTime) { self.fakeSys.clear(); self.reporter.runnerStartTime = startTime; - self.reporter.now = function(){return endTime} + self.reporter.now = function(){return endTime;}; self.reporter.reportRunnerResults(passingRun); } @@ -158,9 +158,9 @@ describe("TrivialNodeReporter", function() { }); it("altogether now", function(){ - this.reporter.now = function(){return 1000} + this.reporter.now = function(){return 1000;}; this.reporter.reportRunnerStarting(); - this.reporter.now = function(){return 1777} + this.reporter.now = function(){return 1777;}; this.reporter.reportRunnerResults(failingRun); expect(this.fakeSys.getOutput()).toContain(red("Finished in 0.777 seconds")); }); diff --git a/src/node/TrivialNodeReporter.js b/src/node/TrivialNodeReporter.js index 9b4234f..2554a48 100644 --- a/src/node/TrivialNodeReporter.js +++ b/src/node/TrivialNodeReporter.js @@ -42,7 +42,7 @@ jasmine.TrivialNodeReporter = function(sys) { var startNewLineIfNecessary = lineEnder(defaultColumnsPerLine); - this.now = function() { return new Date().getTime(); } + this.now = function() { return new Date().getTime(); }; this.reportRunnerStarting = function() { this.runnerStartTime = this.now();