Comparing version 1.0.5 to 1.0.6
@@ -0,1 +1,11 @@ | ||
<a name="1.0.6"></a> | ||
## [1.0.6](https://github.com/thetutlage/japa/compare/v1.0.5...v1.0.6) (2018-01-08) | ||
### Features | ||
* **callable:** allow closure inside done ([4d2adca](https://github.com/thetutlage/japa/commit/4d2adca)) | ||
<a name="1.0.5"></a> | ||
@@ -2,0 +12,0 @@ ## [1.0.5](https://github.com/thetutlage/japa/compare/v1.0.4...v1.0.5) (2017-09-26) |
{ | ||
"name": "japa", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Japa is a batteries included minimal testing framework for Node.Js. Japa does not have any cli to run your tests, infact running the test file as a node script will execute the tests for you (quite similar to tape)", | ||
@@ -12,4 +12,4 @@ "main": "index.js", | ||
"chai": "^4.1.2", | ||
"chalk": "^2.1.0", | ||
"ms": "^2.0.0", | ||
"chalk": "^2.3.0", | ||
"ms": "^2.1.1", | ||
"retry": "^0.10.1", | ||
@@ -29,3 +29,3 @@ "right-pad": "^1.0.1", | ||
"tape": "^4.8.0", | ||
"ygor": "^4.0.4" | ||
"ygor": "^5.1.4" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
@@ -227,4 +227,20 @@ 'use strict' | ||
/** | ||
* When {done} is called with an error | ||
* When {done} is called with an error and it | ||
* is function, then we call the function | ||
* and catch for errors. | ||
*/ | ||
if (typeof (error) === 'function') { | ||
try { | ||
error() | ||
this._internalResolve(resolve)() | ||
} catch (doneError) { | ||
this._internalReject(reject)(doneError) | ||
} | ||
return | ||
} | ||
/** | ||
* Otherwise use the error value to reject | ||
* the promise | ||
*/ | ||
if (error) { | ||
@@ -231,0 +247,0 @@ this._internalReject(reject)(error) |
@@ -18,3 +18,3 @@ 'use strict' | ||
ygor.task('test:safe', () => { | ||
ygor.tasks.add('test:safe', () => { | ||
require('require-all')({ | ||
@@ -28,3 +28,3 @@ dirname: path.join(__dirname, './test'), | ||
ygor.task('test', () => { | ||
ygor.tasks.add('test', () => { | ||
const command = `FORCE_COLOR=true node ${harmonyFlags.join(' ')} tasks.js test:safe` | ||
@@ -38,3 +38,3 @@ exec(command, (code, stdout, stderr) => { | ||
ygor.task('coverage', () => { | ||
ygor.tasks.add('coverage', () => { | ||
const command = `FORCE_COLOR=true node ${harmonyFlags.join(' ')} ./node_modules/.bin/istanbul cover -x tasks.js tasks.js test` | ||
@@ -41,0 +41,0 @@ exec(command, (code, stdout, stderr) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61618
1954
23
Updatedchalk@^2.3.0
Updatedms@^2.1.1