Skip to content

Commit

Permalink
Update test dependencies (#373)
Browse files Browse the repository at this point in the history
* Update travis to match parent karma project

* test: Update testing dependencies

* test: Fix dependency update errors
  • Loading branch information
hicom150 authored and johnjbarton committed Apr 4, 2019
1 parent 14c8cba commit b51cee7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 23 deletions.
20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@
},
"license": "MIT",
"devDependencies": {
"chai": "^3.3.0",
"eslint": "^5.15.2",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-standard": "^4.0.0",
"chai": "^4.2.0",
"eslint": "^2.2.0",
"eslint-config-standard": "^5.1.0",
"eslint-plugin-promise": "^1.1.0",
"eslint-plugin-react": "^4.1.0",
"eslint-plugin-standard": "^1.1.0",
"grunt": "^0.4.5",
"grunt-bump": "^0.7.0",
"grunt-cli": "^1.2.0",
Expand All @@ -51,11 +49,11 @@
"karma-mocha": "1.x || ^0.2.0",
"karma-requirejs": "1.x || ^0.2.2",
"load-grunt-tasks": "^3.2.0",
"mocha": "^2.2.5",
"mocha": "^6.0.2",
"mocks": "0.0.15",
"requirejs": "^2.1.20",
"sinon": "^1.14.1",
"sinon-chai": "^2.8.0"
"sinon": "^7.2.7",
"sinon-chai": "^3.3.0"
},
"engines": {
"node": ">=8.0.0"
Expand Down
3 changes: 0 additions & 3 deletions test/mocha-globals.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ global.sinon = sinon
# chai plugins
chai.use(require 'sinon-chai')

beforeEach ->
global.sinon = sinon.sandbox.create()

afterEach ->
global.sinon.restore()
18 changes: 9 additions & 9 deletions test/reporter.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe 'reporter', ->
browsers.add fakeOpera
reporter.onRunStart()
browsers.forEach (b) -> reporter.onBrowserStart b
mockMkdir.reset()
mockMkdir.resetHistory()

it 'has no pending file writings', ->
done = sinon.spy()
Expand Down Expand Up @@ -269,7 +269,7 @@ describe 'reporter', ->
run()
expect(mockMkdir).to.have.been.calledTwice

mockMkdir.reset()
mockMkdir.resetHistory()
rootConfig.coverageReporter.reporters = [{ type: 'text-summary', file: 'file' }]
run()
expect(mockMkdir).to.have.been.calledTwice
Expand All @@ -280,8 +280,8 @@ describe 'reporter', ->
dir: 'defaultdir'
includeAllSources: true

mockCoverageMap.get.reset()
mockAdd.reset()
mockCoverageMap.get.resetHistory()
mockAdd.resetHistory()

reporter = new m.CoverageReporter customConfig, mockHelper, mockLogger
reporter.onRunStart()
Expand All @@ -296,7 +296,7 @@ describe 'reporter', ->
dir: 'defaultdir'
includeAllSources: false

mockCoverageMap.get.reset()
mockCoverageMap.get.resetHistory()

reporter = new m.CoverageReporter customConfig, mockHelper, mockLogger
reporter.onRunStart()
Expand All @@ -309,7 +309,7 @@ describe 'reporter', ->
coverageReporter:
dir: 'defaultdir'

mockCoverageMap.get.reset()
mockCoverageMap.get.resetHistory()

reporter = new m.CoverageReporter customConfig, mockHelper, mockLogger
reporter.onRunStart()
Expand Down Expand Up @@ -384,9 +384,9 @@ describe 'reporter', ->
{ type: 'html' }
]

mockDispose.reset()
mockWriteReport.reset()
mockMkdir.reset()
mockDispose.resetHistory()
mockWriteReport.resetHistory()
mockMkdir.resetHistory()

run()

Expand Down

0 comments on commit b51cee7

Please sign in to comment.