Socket
Socket
Sign inDemoInstall

test

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

.index.js.un~

4

History.md
# Changes #
## 0.4.0 / 2011-07-10 ##
- Support for browser runtime.
## 0.3.0 / 2011-07-10 ##

@@ -4,0 +8,0 @@

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc