Skip to content

Commit

Permalink
feat: we can now use the language feature Object.assign (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgtybhertgeghgtwtg authored and bcoe committed Feb 7, 2017
1 parent 80afed9 commit f77db2a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -11,7 +11,6 @@
"dependencies": {
"find-up": "^2.1.0",
"istanbul-lib-instrument": "^1.4.2",
"object-assign": "^4.1.0",
"test-exclude": "^4.0.0"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
@@ -1,7 +1,6 @@
import {realpathSync} from 'fs'
import {dirname} from 'path'
import {programVisitor} from 'istanbul-lib-instrument'
import assign from 'object-assign'

const testExclude = require('test-exclude')
const findUp = require('find-up')
Expand All @@ -19,7 +18,7 @@ function makeShouldSkip () {
return function shouldSkip (file, opts) {
if (!exclude) {
const cwd = getRealpath(process.env.NYC_CWD || process.cwd())
exclude = testExclude(assign(
exclude = testExclude(Object.assign(
{ cwd },
Object.keys(opts).length > 0 ? opts : {
configKey: 'nyc',
Expand Down

0 comments on commit f77db2a

Please sign in to comment.