Comparing version 0.3.0 to 0.4.0
# Changes # | ||
## 0.4.0 / 2011-07-10 ## | ||
- Support for browser runtime. | ||
## 0.3.0 / 2011-07-10 ## | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "test", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "UncommonJS test runner.", | ||
@@ -24,5 +24,6 @@ "keywords": [ "test", "commonjs", "unit test" ], | ||
"scripts": { | ||
"test": "node tests/all.js" | ||
"test": "node tests/engines/node/test.js", | ||
"test-browser": "open tests/engines/browser/index.html" | ||
}, | ||
"main": "./test.js", | ||
"main": "./engines/node/test.js", | ||
"engines": { "node": ">=0.4.x" }, | ||
@@ -29,0 +30,0 @@ "licenses": [{ |
@@ -10,6 +10,3 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
var Assert = require('./assert').Assert | ||
var Logger = require('./logger').Logger | ||
// constancts | ||
var ERR_COMPLETED_ASSERT = 'Assert in completed test' | ||
@@ -89,3 +86,2 @@ var ERR_COMPLETED_COMPLETE = 'Attemt to complete test more then one times' | ||
exports.run = function run(units, logger) { | ||
logger = logger || new Logger() | ||
Unit('Running all tests:', units, logger, Assert)(function done() { | ||
@@ -92,0 +88,0 @@ logger.report() |
@@ -138,4 +138,2 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
if (module == require.main) run(exports) | ||
}) |
@@ -41,3 +41,2 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
exports['test multiple tests with timeout'] = function (assert, done) { | ||
@@ -61,3 +60,5 @@ var tests = 0 | ||
tests ++ | ||
require('assert').ok(0) | ||
// TODO: Find a better solution for browser. | ||
//require('assert').ok(0) | ||
assert.ok(0) | ||
}, | ||
@@ -81,4 +82,2 @@ 'ignore if does not starts with test': function () { | ||
if (module == require.main) run(exports) | ||
}) |
@@ -54,4 +54,2 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
if (module == require.main) require('../test').run(exports) | ||
}) |
@@ -77,4 +77,2 @@ /* vim:set ts=2 sw=2 sts=2 expandtab */ | ||
if (module == require.main) run(exports) | ||
}) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 6 instances 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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
1599789
51
1291
17