{ "_args": [ [ { "raw": "assert@>= 0.4.9", "scope": null, "escapedName": "assert", "name": "assert", "rawSpec": ">= 0.4.9", "spec": ">=0.4.9", "type": "range" }, "/Users/fzy/project/koa2_Sequelize_project/node_modules/win32api" ] ], "_from": "assert@>=0.4.9", "_id": "assert@1.4.1", "_inCache": true, "_location": "/assert", "_nodeVersion": "5.11.0", "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/assert-1.4.1.tgz_1464703323424_0.46298269950784743" }, "_npmUser": { "name": "cwmma", "email": "calvin.metcalf@gmail.com" }, "_npmVersion": "3.8.6", "_phantomChildren": {}, "_requested": { "raw": "assert@>= 0.4.9", "scope": null, "escapedName": "assert", "name": "assert", "rawSpec": ">= 0.4.9", "spec": ">=0.4.9", "type": "range" }, "_requiredBy": [ "/win32api", "/win32ole" ], "_resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", "_shasum": "99912d591836b5a6f5b345c0f07eefc08fc65d91", "_shrinkwrap": null, "_spec": "assert@>= 0.4.9", "_where": "/Users/fzy/project/koa2_Sequelize_project/node_modules/win32api", "bugs": { "url": "https://github.com/defunctzombie/commonjs-assert/issues" }, "dependencies": { "util": "0.10.3" }, "description": "commonjs assert - node.js api compatible", "devDependencies": { "mocha": "~1.21.4", "zuul": "~3.10.0", "zuul-ngrok": "^4.0.0" }, "directories": {}, "dist": { "shasum": "99912d591836b5a6f5b345c0f07eefc08fc65d91", "tarball": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz" }, "gitHead": "ea25d53a51201cf268681c5ec37f7d51b2d82884", "homepage": "https://github.com/defunctzombie/commonjs-assert", "keywords": [ "assert" ], "license": "MIT", "main": "./assert.js", "maintainers": [ { "name": "coolaj86", "email": "coolaj86@gmail.com" }, { "name": "cwmma", "email": "calvin.metcalf@gmail.com" }, { "name": "defunctzombie", "email": "shtylman@gmail.com" } ], "name": "assert", "optionalDependencies": {}, "readme": "# assert\n\n[](https://travis-ci.org/defunctzombie/commonjs-assert)\n\nThis module is used for writing unit tests for your applications, you can access it with require('assert').\n\nThe API is derived from the [commonjs 1.0 unit testing](http://wiki.commonjs.org/wiki/Unit_Testing/1.0) spec and the [node.js assert module](http://nodejs.org/api/assert.html)\n\n## assert.fail(actual, expected, message, operator)\nThrows an exception that displays the values for actual and expected separated by the provided operator.\n\n## assert(value, message), assert.ok(value, [message])\nTests if value is truthy, it is equivalent to assert.equal(true, !!value, message);\n\n## assert.equal(actual, expected, [message])\nTests shallow, coercive equality with the equal comparison operator ( == ).\n\n## assert.notEqual(actual, expected, [message])\nTests shallow, coercive non-equality with the not equal comparison operator ( != ).\n\n## assert.deepEqual(actual, expected, [message])\nTests for deep equality.\n\n## assert.notDeepEqual(actual, expected, [message])\nTests for any deep inequality.\n\n## assert.strictEqual(actual, expected, [message])\nTests strict equality, as determined by the strict equality operator ( === )\n\n## assert.notStrictEqual(actual, expected, [message])\nTests strict non-equality, as determined by the strict not equal operator ( !== )\n\n## assert.throws(block, [error], [message])\nExpects block to throw an error. error can be constructor, regexp or validation function.\n\nValidate instanceof using constructor:\n\n```javascript\nassert.throws(function() { throw new Error(\"Wrong value\"); }, Error);\n```\n\nValidate error message using RegExp:\n\n```javascript\nassert.throws(function() { throw new Error(\"Wrong value\"); }, /value/);\n```\n\nCustom error validation:\n\n```javascript\nassert.throws(function() {\n throw new Error(\"Wrong value\");\n}, function(err) {\n if ( (err instanceof Error) && /value/.test(err) ) {\n return true;\n }\n}, \"unexpected error\");\n```\n\n## assert.doesNotThrow(block, [message])\nExpects block not to throw an error, see assert.throws for details.\n\n## assert.ifError(value)\nTests if value is not a false value, throws if it is a true value. Useful when testing the first argument, error in callbacks.\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/defunctzombie/commonjs-assert.git" }, "scripts": { "browser-local": "zuul --no-coverage --local 8000 -- test.js", "test": "npm run test-node && npm run test-browser", "test-browser": "zuul -- test.js", "test-native": "TEST_NATIVE=true mocha --ui qunit test.js", "test-node": "mocha --ui qunit test.js" }, "version": "1.4.1" }