Move test module instantiation to beforeEach

This commit is contained in:
Devin Wilson 2015-06-11 22:40:47 -06:00
parent 07707c34b0
commit 364e187a27
2 changed files with 4 additions and 8 deletions

View File

@ -28,8 +28,6 @@
},
"devDependencies": {
"browserify": "^10.2.3",
"chai": "^2.3.0",
"chai-jquery": "^2.0.0",
"coffee-script": "^1.9.3",
"coffeelint": "^1.10.1",
"karma": "^0.12.35",
@ -43,9 +41,7 @@
"karma-phantomjs-launcher": "^0.2.0",
"karma-spec-reporter": "0.0.19",
"mocha": "^2.2.5",
"phantomjs": "^1.9.17",
"sinon": "^1.14.1",
"sinon-chai": "^2.7.0"
"phantomjs": "^1.9.17"
},
"license": "MIT"
}

View File

@ -27,9 +27,6 @@ describe 'RTC', ->
# EventEmitter: ->
# on: sandbox.stub()
afterEach ->
sandbox.restore()
RTC = require('../../modules/RTC/RTC.js', {
'events': mock.events
'./RTCUtils.js': ->
@ -44,6 +41,9 @@ describe 'RTC', ->
'../../service/UI/UIEvents': ->
})
afterEach ->
sandbox.restore()
describe 'init', ->
props =