Skip to content

Commit

Permalink
fixing travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Dec 21, 2016
1 parent 0f2c8b5 commit b4f8c00
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ CVS/
*~
.com.apple.timemachine.supported
tests/out/
.nyc_output
11 changes: 0 additions & 11 deletions .istanbul.yml

This file was deleted.

17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"bin": "./bin/cpr",
"devDependencies": {
"github-changes": "^1.0.4",
"istanbul": "~0.4.4",
"jenkins-mocha": "^3.0.0",
"jenkins-mocha": "^4.0.0",
"jshint": "^2.9.2",
"nyc": "^10.0.0",
"yui-lint": "~0.2.0"
},
"contributors": [
Expand All @@ -40,9 +40,20 @@
"pretest": "jshint --config ./node_modules/yui-lint/jshint.json ./lib/",
"windows-test": "jenkins-mocha ./tests/full.js",
"test": "jenkins-mocha ./tests/full.js",
"posttest": "istanbul check-coverage",
"posttest": "nyc report",
"changes": "github-changes -o davglass -r cpr"
},
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 90,
"check-coverage": true,
"reporter": [
"text",
"text-summary"
]
},
"bugs": {
"url": "http://github.com/davglass/cpr/issues"
},
Expand Down
18 changes: 9 additions & 9 deletions tests/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ describe('cpr test suite', function() {

});

describe('should copy minimatch from bad filter', function() {
describe('should copy shelljs from bad filter', function() {
var out = path.join(to, '4'),
data;

Expand All @@ -210,17 +210,17 @@ describe('cpr test suite', function() {
it('dirs are not equal', function() {
assert.deepEqual(data.dirs.to, data.dirs.from);
});
it('from directory has minimatch dir', function() {
var fromHasGFS = data.dirs.from.some(function(item) {
return (item === 'minimatch');
it('from directory has shelljs dir', function() {
var fromHas = data.dirs.from.some(function(item) {
return (item === 'shelljs');
});
assert.equal(true, fromHasGFS);
assert.equal(true, fromHas);
});
it('to directory does have minimatch dir', function() {
var toHasGFS = data.dirs.to.some(function(item) {
return (item === 'minimatch');
it('to directory does have shelljs dir', function() {
var toHas = data.dirs.to.some(function(item) {
return (item === 'shelljs');
});
assert.equal(true, toHasGFS);
assert.equal(true, toHas);
});

});
Expand Down

0 comments on commit b4f8c00

Please sign in to comment.