Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.0.0-next.1 to 5.0.0-next.2

test/ignore_from_gitignore.js

36

lib/test.js

@@ -17,2 +17,3 @@ "use strict";

var isProto = bind.call(Function.call, Object.prototype.isPrototypeOf);
var $test = bind.call(Function.call, RegExp.prototype.test);

@@ -625,2 +626,37 @@ module.exports = Test;

Test.prototype.match = function match(string, regexp, msg, extra) {
if (!isRegExp(regexp)) {
throw new TypeError('The "regexp" argument must be an instance of RegExp. Received type ' + typeof regexp + ' (' + inspect(regexp) + ')');
}
if (typeof string !== 'string') {
throw new TypeError('The "string" argument must be of type string. Received type ' + typeof string + ' (' + inspect(string) + ')');
}
var matches = $test(regexp, string);
this._assert(matches, {
message: defined(msg, 'The input did not match the regular expression ' + inspect(regexp) + '. Input: ' + inspect(string)),
operator: 'match',
actual: string,
expected: regexp,
extra: extra
});
};
Test.prototype.doesNotMatch = function doesNotMatch(string, regexp, msg, extra) {
if (!isRegExp(regexp)) {
throw new TypeError('The "regexp" argument must be an instance of RegExp. Received type ' + typeof regexp + ' (' + inspect(regexp) + ')');
}
if (typeof string !== 'string') {
throw new TypeError('The "string" argument must be of type string. Received type ' + typeof string + ' (' + inspect(string) + ')');
}
var matches = $test(regexp, string);
this._assert(!matches, {
message: defined(msg, 'The input was expected to not match the regular expression ' + inspect(regexp) + '. Input: ' + inspect(string)),
operator: 'doesNotMatch',
actual: string,
expected: regexp,
extra: extra
});
};
Test.skip = function (name_, _opts, _cb) {

@@ -627,0 +663,0 @@ var args = getTestArgs.apply(null, arguments);

3

package.json
{
"name": "tape",
"version": "5.0.0-next.1",
"version": "5.0.0-next.2",
"description": "tap-producing test harness for node and browsers",

@@ -25,2 +25,3 @@ "main": "index.js",

"defined": "^1.0.0",
"dotignore": "^0.1.2",
"for-each": "^0.3.3",

@@ -27,0 +28,0 @@ "function-bind": "^1.1.1",

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