Skip to content

Commit

Permalink
refactor(adapter): fix static code analysis warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicojs committed Mar 18, 2018
1 parent 3713801 commit c0365bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/adapter.js
Expand Up @@ -161,7 +161,7 @@ function KarmaReporter (tc, jasmineEnv) {
// Save link on native Date object
// because user can mock it
var _Date = Date
var startTimeCurrentSpec = new _Date().getTime();
var startTimeCurrentSpec = new _Date().getTime()

/**
* @param suite
Expand Down Expand Up @@ -234,7 +234,7 @@ function KarmaReporter (tc, jasmineEnv) {
currentSuite = currentSuite.parent
}

this.specStarted = function (specResult) {
this.specStarted = function () {
startTimeCurrentSpec = new _Date().getTime()
}

Expand Down
4 changes: 2 additions & 2 deletions test/adapter.spec.js
Expand Up @@ -253,9 +253,9 @@ describe('jasmine adapter', function () {
it('should report time for every spec', function () {
var counter = 3

function copySpecResult() {
function copySpecResult () {
var copy = {}
for(var i in spec.result) {
for (var i in spec.result) {
copy[i] = spec.result[i]
}
return copy
Expand Down

0 comments on commit c0365bf

Please sign in to comment.