Socket
Socket
Sign inDemoInstall

tape

Package Overview
Dependencies
Maintainers
4
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tape - npm Package Compare versions

Comparing version 5.4.1 to 5.5.0

test/no_only.js

4

index.js

@@ -69,3 +69,4 @@ 'use strict';

var harness = createHarness({
autoclose: defined(config.autoclose, false)
autoclose: defined(config.autoclose, false),
noOnly: defined(conf.noOnly, defined(process.env.NODE_TAPE_NO_ONLY_TEST, false))
});

@@ -167,2 +168,3 @@ var running = false;

if (only) { throw new Error('there can only be one only test'); }
if (conf_.noOnly) { throw new Error('`only` tests are prohibited'); }
only = true;

@@ -169,0 +171,0 @@ var t = test.apply(null, arguments);

{
"name": "tape",
"version": "5.4.1",
"version": "5.5.0",
"description": "tap-producing test harness for node and browsers",

@@ -58,3 +58,3 @@ "main": "index.js",

"es-value-fixtures": "^1.2.1",
"eslint": "^8.6.0",
"eslint": "^8.7.0",
"falafel": "^2.2.4",

@@ -69,3 +69,3 @@ "js-yaml": "^3.14.0",

"prepublish": "!(type not-in-publish) || not-in-publish || npm run prepublishOnly",
"prelint": "eclint check $(git ls-files | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')",
"prelint": "eclint check $(git ls-files 2>/dev/null | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git' || echo '*.md *.js test/*.js')",
"lint": "eslint --ext .js,.cjs,.mjs . bin/*",

@@ -72,0 +72,0 @@ "pretest": "npm run lint",

@@ -65,3 +65,3 @@ 'use strict';

' actual: |-',
" { [RangeError: actual!] message: 'actual!' }",
' { [RangeError: actual!] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + "message: 'actual!' }",
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',

@@ -107,3 +107,3 @@ ' stack: |-',

' actual: |-',
' { [Error: First] message: \'First\' }',
' { [Error: First] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + 'message: \'First\' }',
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',

@@ -110,0 +110,0 @@ ' stack: |-',

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