New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chai-string

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-string - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

24

chai-string.js

@@ -74,4 +74,4 @@ (function (plugin) {

chai.string.startsWith(actual, expected),
'expected ' + this._obj + ' to starts with ' + expected,
'expected ' + this._obj + ' to not starts with ' + expected
'expected ' + this._obj + ' to start with ' + expected,
'expected ' + this._obj + ' not to start with ' + expected
);

@@ -88,4 +88,4 @@ };

chai.string.endsWith(actual, expected),
'expected ' + this._obj + ' to ends with ' + expected,
'expected ' + this._obj + ' to not ends with ' + expected
'expected ' + this._obj + ' to end with ' + expected,
'expected ' + this._obj + ' not to end with ' + expected
);

@@ -102,4 +102,4 @@ };

chai.string.equalIgnoreCase(actual, expected),
'expected ' + this._obj + ' to be equal to ' + expected + ' ignoring case',
'expected ' + this._obj + ' to be not equal to ' + expected + ' ignoring case'
'expected ' + this._obj + ' to equal ' + expected + ' ignoring case',
'expected ' + this._obj + ' not to equal ' + expected + ' ignoring case'
);

@@ -113,4 +113,4 @@ });

chai.string.singleLine(actual),
'expected ' + this._obj + ' to be single line',
'expected ' + this._obj + ' to be not single line'
'expected ' + this._obj + ' to be a single line',
'expected ' + this._obj + ' not to be a single line'
);

@@ -124,4 +124,4 @@ });

chai.string.reverseOf(actual, expected),
'expected ' + this._obj + ' to be reverse of ' + expected,
'expected ' + this._obj + ' to be not reverse of ' + expected
'expected ' + this._obj + ' to be the reverse of ' + expected,
'expected ' + this._obj + ' not to be the reverse of ' + expected
);

@@ -135,4 +135,4 @@ });

chai.string.palindrome(actual),
'expected ' + this._obj + ' to be palindrome',
'expected ' + this._obj + ' to be not palindrome'
'expected ' + this._obj + ' to be a palindrome',
'expected ' + this._obj + ' not to be a palindrome'
);

@@ -139,0 +139,0 @@ });

{
"name": "chai-string",
"version": "1.1.1",
"version": "1.1.2",
"keywords": ["chai", "testing", "string"],

@@ -20,3 +20,3 @@ "description": "strings comparison matchers for chai",

"devDependencies": {
"chai": "1.9.1",
"chai": "^1.9.1",
"mocha": "~1.6.0",

@@ -26,4 +26,4 @@ "nodemon": "~0.6.23"

"dependencies": {
"chai": "1.9.1"
"chai": "^1.9.1"
}
}

@@ -6,2 +6,3 @@ # chai-string

[![Build Status](https://travis-ci.org/onechiporenko/chai-string.png?branch=master)](https://travis-ci.org/onechiporenko/chai-string)
[![Downloads](http://img.shields.io/npm/dm/chai-string.svg)](http://img.shields.io/npm/dm/chai-string.svg)

@@ -8,0 +9,0 @@ ## Usage

@@ -18,2 +18,3 @@ (function (test) {

var assert = chai.assert;
var expect = chai.expect;

@@ -69,2 +70,7 @@ if (testingServer) {

it('check that', function () {
var obj = { foo: 'hello world' };
expect(obj).to.have.property('foo').that.startsWith('hello');
});
});

@@ -71,0 +77,0 @@

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