Comparing version 0.0.2 to 0.0.3
@@ -5,3 +5,5 @@ "use strict"; | ||
const colors = require('colors'); | ||
// @ts-ignore | ||
const index_1 = require("./matchers/index"); | ||
const isPromise = require('is-promise'); | ||
const cosmos = { | ||
@@ -52,3 +54,8 @@ SILENT: false | ||
try { | ||
cb(); | ||
if (isPromise(cb())) { | ||
Promise.resolve(cb()); | ||
} | ||
else { | ||
cb(); | ||
} | ||
log(`${indent(indentLevel + 1)}${' OK '.bgGreen.black} ${title.green}`); | ||
@@ -113,2 +120,4 @@ summary.success++; | ||
}; | ||
const dsl = { expect, it: exports.it, xit, end, describe, beforeEach: exports.beforeEach, beforeAll: exports.beforeAll }; | ||
Object.assign(cosmos, dsl); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "cosmosts", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/index.js", | ||
@@ -10,5 +10,9 @@ "types": "dist/index.d.ts", | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"dependencies": { | ||
"colors": "^1.3.3", | ||
"deep-equal": "^1.0.1" | ||
"deep-equal": "^1.0.1", | ||
"is-promise": "^2.1.0" | ||
}, | ||
@@ -15,0 +19,0 @@ "devDependencies": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
14677
25
3
208
1
+ Addedis-promise@^2.1.0
+ Addedis-promise@2.2.2(transitive)