Skip to content

Commit

Permalink
test(test-runner-test.coffee): Migrate to Lodash
Browse files Browse the repository at this point in the history
Converted underscore.clone() to lodash.cloneDeep(). Added another header to test to exercise array
portion of code.
  • Loading branch information
plroebuck committed Mar 1, 2018
1 parent fbb4a99 commit c29d3c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/unit/test-runner-test.coffee
@@ -1,10 +1,11 @@
chai = require 'chai'
sinon = require 'sinon'
sinonChai = require 'sinon-chai'
_ = require 'underscore'
_ = require 'lodash'
mocha = require 'mocha'
mute = require 'mute'
proxyquire = require('proxyquire').noCallThru()
pkg = require '../../package'

TestFactory = require '../../lib/test'

Expand Down Expand Up @@ -450,6 +451,7 @@ describe 'Test Runner', () ->

header =
key: 'value'
'X-AbaoVersion': pkg.version

options =
server: "#{SERVER}"
Expand All @@ -458,7 +460,7 @@ describe 'Test Runner', () ->
runner = new TestRunner options, ''
sinon.stub runner.mocha, 'run'
.callsFake (callback) ->
receivedTest = _.clone(test)
receivedTest = _.cloneDeep(test)
callback()

runner.run [test], hooksStub, done
Expand Down

0 comments on commit c29d3c0

Please sign in to comment.