Skip to content

Commit

Permalink
chore(package): update standard to version 9.0.0 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and blakeembrey committed Mar 1, 2017
1 parent c552793 commit 67737f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"mocha": "^3.1.2",
"pre-commit": "^1.0.7",
"regenerator": "^0.9.0",
"standard": "^8.5.0",
"standard": "^9.0.0",
"testem": "^1.13.0",
"traceur": "0.0.111"
},
Expand Down
30 changes: 15 additions & 15 deletions test.js
@@ -1,15 +1,15 @@
/* eslint-disable no-eval */
/* global describe, it, chai, ES6Promise */

var expect
var assert
var Runnable
var isNode = typeof require === 'function'

if (isNode) {
expect = require('chai').expect
assert = require('chai').assert
Runnable = require('mocha').Runnable
} else {
expect = chai.expect
assert = chai.assert
Runnable = window.Mocha.Runnable

ES6Promise.polyfill()
Expand Down Expand Up @@ -40,8 +40,8 @@ describe('co-mocha', function () {
})

test.run(function (err) {
expect(err).to.exist
expect(err.message).to.equal('You had one job')
assert(err instanceof Error)
assert.equal(err.message, 'You had one job')

return done()
})
Expand All @@ -67,8 +67,8 @@ describe('co-mocha', function () {
})

test.run(function (err) {
expect(err).to.exist
expect(err.message).to.equal('You promised me')
assert(err instanceof Error)
assert.equal(err.message, 'You promised me')

return done()
})
Expand All @@ -92,8 +92,8 @@ describe('co-mocha', function () {
})

test.run(function (err) {
expect(err).to.exist
expect(err.message).to.equal('You never called me back')
assert(err instanceof Error)
assert.equal(err.message, 'You never called me back')

return done()
})
Expand Down Expand Up @@ -137,8 +137,8 @@ describe('co-mocha', function () {
var test = new Runnable('es6', eval(TEST_ERROR_SOURCE))

test.run(function (err) {
expect(err).to.exist
expect(err.message).to.equal('This generation has failed')
assert(err instanceof Error)
assert.equal(err.message, 'This generation has failed')

return done()
})
Expand Down Expand Up @@ -166,8 +166,8 @@ describe('co-mocha', function () {
))

test.run(function (err) {
expect(err).to.exist
expect(err.message).to.equal('This generation has failed')
assert(err instanceof Error)
assert.equal(err.message, 'This generation has failed')

return done()
})
Expand All @@ -189,8 +189,8 @@ describe('co-mocha', function () {
)

test.run(function (err) {
expect(err).to.exist
expect(err.message).to.equal('This generation has failed')
assert(err instanceof Error)
assert.equal(err.message, 'This generation has failed')

return done()
})
Expand Down

0 comments on commit 67737f3

Please sign in to comment.