Comparing version 1.1.5 to 1.1.6
@@ -10,3 +10,4 @@ module.exports = { | ||
"parserOptions": { | ||
"sourceType": "module" | ||
"sourceType": "module", | ||
"ecmaVersion": "2017" | ||
}, | ||
@@ -13,0 +14,0 @@ "rules": { |
{ | ||
"name": "cf-auto", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "test runner", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -120,6 +120,5 @@ import { deepEqual } from "./tool.js"; | ||
export const test = (description, fn) => { | ||
export const test = async (description, fn) => { | ||
try { | ||
const rs = fn(assert); | ||
return (rs && rs.then) ? rs : Promise.resolve(); | ||
return await fn(assert); | ||
} catch (error) { | ||
@@ -126,0 +125,0 @@ failedList.push({ |
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
23206