Comparing version 4.1.6 to 4.1.7
@@ -268,3 +268,3 @@ "use strict" | ||
var errCount = o.report(results, stats) | ||
if (hasProcess && errCount !== 0) process.exit(1) // eslint-disable-line no-process-exit | ||
if (hasProcess) process.exit(errCount !== 0 ? 1 : undefined) // eslint-disable-line no-process-exit | ||
} | ||
@@ -492,3 +492,3 @@ }, null, null) | ||
} | ||
results[self.i].message = message + "\n\n" + results[self.i].message | ||
results[self.i].message = message + "\n\n" + results[self.i].message | ||
} | ||
@@ -495,0 +495,0 @@ } |
{ | ||
"name": "ospec", | ||
"version": "4.1.6", | ||
"version": "4.1.7", | ||
"description": "Noiseless testing framework", | ||
@@ -5,0 +5,0 @@ "main": "ospec.js", |
@@ -668,3 +668,3 @@ # ospec | ||
- A **test** is the function passed to `o("description", function test() {})`. | ||
- A **hook** is a function passed to `o.before()`, `o.after()`. `o.beforeEach()` and `o.afterEach()` | ||
- A **hook** is a function passed to `o.before()`, `o.after()`. `o.beforeEach()` and `o.afterEach()`. | ||
- A **task** designates either a test or a hook. | ||
@@ -702,3 +702,3 @@ - A given test and its associated `beforeEach` and `afterEach` hooks form a **streak**. The `beforeEach` hooks run outermost first, the `afterEach` run outermost last. The hooks are optional, and are tied at test-definition time in the `o.spec()` calls that enclose the test. | ||
- At test-definition time: | ||
- An error thrown at the root of a file will cause subsequent tests and specs to be ignored | ||
- An error thrown at the root of a file will cause subsequent tests and specs to be ignored. | ||
- An error thrown in a spec definition will cause the spec to be ignored. | ||
@@ -705,0 +705,0 @@ - At test-execution time: |
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
52830