diff --git a/ospec/bin/ospec.cmd b/ospec/bin/ospec.cmd index fc8248a2..8e52423f 100644 --- a/ospec/bin/ospec.cmd +++ b/ospec/bin/ospec.cmd @@ -1 +1 @@ -node cli \ No newline at end of file +node ospec \ No newline at end of file diff --git a/ospec/ospec.js b/ospec/ospec.js index 4127c42e..b10325fd 100644 --- a/ospec/ospec.js +++ b/ospec/ospec.js @@ -84,6 +84,7 @@ module.exports = new function init() { } catch (e) { record(e.message, e) + subjects.pop() next() } if (timeout === 0) { @@ -177,7 +178,7 @@ module.exports = new function init() { results.push(result) } function serialize(value) { - if (value === null || typeof value === "object") return String(value) + if (value === null || typeof value === "object" || typeof value === "number") return String(value) else if (typeof value === "function") return value.name || "" try {return JSON.stringify(value)} catch (e) {return String(value)} }