You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

assertior

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assertior - npm Package Compare versions

Comparing version
0.0.6
to
0.0.7
+3
built/type.string.assertions.d.ts
declare function stringIncludesSubstring(expected: string, actual: string, message?: string, _isSoft?: boolean): void;
declare function stringNotIncludesSubstring(expected: string, actual: string, message?: string, _isSoft?: boolean): void;
export { stringIncludesSubstring, stringNotIncludesSubstring };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringNotIncludesSubstring = exports.stringIncludesSubstring = void 0;
const assert_1 = require("assert");
const utils_1 = require("./utils");
const types_1 = require("./types");
const assertions_utils_1 = require("./assertions.utils");
function stringIncludesSubstring(expected, actual, message = '', _isSoft = false) {
let resulter;
message = message ? message : utils_1.buildDefaultMessage('to includes substring', expected, actual);
try {
if (!types_1.isString(expected)) {
throw new TypeError(utils_1.buildTypeErrorMessage('string', expected));
}
if (!types_1.isString(actual)) {
throw new TypeError(utils_1.buildTypeErrorMessage('string', actual));
}
const isIncludes = expected.includes(actual);
if (!isIncludes) {
throw new assert_1.AssertionError({ message: `${message}`, expected, actual });
}
}
catch (error) {
resulter = error;
}
assertions_utils_1.postAssertCall(resulter, message, expected, _isSoft);
}
exports.stringIncludesSubstring = stringIncludesSubstring;
function stringNotIncludesSubstring(expected, actual, message = '', _isSoft = false) {
let resulter;
message = message ? message : utils_1.buildDefaultMessage('to not includes substring', expected, actual);
try {
if (!types_1.isString(expected)) {
throw new TypeError(utils_1.buildTypeErrorMessage('string', expected));
}
if (!types_1.isString(actual)) {
throw new TypeError(utils_1.buildTypeErrorMessage('string', actual));
}
const isIncludes = expected.includes(actual);
if (isIncludes) {
throw new assert_1.AssertionError({ message: `${message}`, expected, actual });
}
}
catch (error) {
resulter = error;
}
assertions_utils_1.postAssertCall(resulter, message, expected, _isSoft);
}
exports.stringNotIncludesSubstring = stringNotIncludesSubstring;
//# sourceMappingURL=type.string.assertions.js.map
{"version":3,"file":"type.string.assertions.js","sourceRoot":"","sources":["../lib/type.string.assertions.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AACtC,mCAAmE;AACnE,mCAAiC;AACjC,yDAAuE;AAEvE,SAAS,uBAAuB,CAAC,QAAgB,EAAE,MAAc,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,GAAG,KAAK;IAC9F,IAAI,QAAQ,CAAC;IACb,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,2BAAmB,CAAC,uBAAuB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC7F,IAAI;QACF,IAAI,CAAC,gBAAQ,CAAC,QAAQ,CAAC,EAAE;YACvB,MAAM,IAAI,SAAS,CAAC,6BAAqB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;SAChE;QACD,IAAI,CAAC,gBAAQ,CAAC,MAAM,CAAC,EAAE;YACrB,MAAM,IAAI,SAAS,CAAC,6BAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;SAC9D;QACD,MAAM,UAAU,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,uBAAc,CAAC,EAAC,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAC;SACrE;KACF;IAAC,OAAO,KAAK,EAAE;QACd,QAAQ,GAAG,KAAK,CAAC;KAClB;IAED,iCAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC;AAwBC,0DAAuB;AAtBzB,SAAS,0BAA0B,CAAC,QAAgB,EAAE,MAAc,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,GAAG,KAAK;IACjG,IAAI,QAAQ,CAAC;IACb,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,2BAAmB,CAAC,2BAA2B,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACjG,IAAI;QACF,IAAI,CAAC,gBAAQ,CAAC,QAAQ,CAAC,EAAE;YACvB,MAAM,IAAI,SAAS,CAAC,6BAAqB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;SAChE;QACD,IAAI,CAAC,gBAAQ,CAAC,MAAM,CAAC,EAAE;YACrB,MAAM,IAAI,SAAS,CAAC,6BAAqB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;SAC9D;QACD,MAAM,UAAU,GAAG,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,UAAU,EAAE;YACd,MAAM,IAAI,uBAAc,CAAC,EAAC,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC,CAAC;SACrE;KACF;IAAC,OAAO,KAAK,EAAE;QACd,QAAQ,GAAG,KAAK,CAAC;KAClB;IAED,iCAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC;AAIC,gEAA0B"}
+6
-1

@@ -1,2 +0,5 @@

import { initStepDeclarator } from './assertions.list';
interface IStepDeclarator {
(stepAssertionName: string, error: any, expected: any, actual: any): any;
}
declare function initStepDeclarator(stepDeclarator: IStepDeclarator): void;
interface IAssetionList {

@@ -9,2 +12,4 @@ toEqual(actual: any, message?: string): any;

objectIncludesKeys(keysList: string[], message?: string): any;
stringIncludesSubstring(subString: string, message?: string): any;
stringNotIncludesSubstring(subString: string, message?: string): any;
}

@@ -11,0 +16,0 @@ interface IExpectation {

+21
-8
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.initStepDeclarator = exports.expect = void 0;
const assertions_list_1 = require("./assertions.list");
Object.defineProperty(exports, "initStepDeclarator", { enumerable: true, get: function () { return assertions_list_1.initStepDeclarator; } });
const type_object_assertions_1 = require("./type.object.assertions");
const type_string_assertions_1 = require("./type.string.assertions");
const type_common_assertions_1 = require("./type.common.assertions");
const type_array_assertions_1 = require("./type.array.assertions");
const assertions_utils_1 = require("./assertions.utils");
let logger;
function initStepDeclarator(stepDeclarator) {
assertions_utils_1._initStepDeclarator(stepDeclarator);
}
exports.initStepDeclarator = initStepDeclarator;
function _expect(expected, message, _isSoft = false) {
return {
toEqual(actual, toEqualMessage) {
assertions_list_1.toEqual(expected, actual, message || toEqualMessage, _isSoft);
type_common_assertions_1.toEqual(expected, actual, message || toEqualMessage, _isSoft);
},
toDeepEqual(actual, toEqualMessage) {
assertions_list_1.toDeepEqual(expected, actual, message || toEqualMessage, _isSoft);
type_common_assertions_1.toDeepEqual(expected, actual, message || toEqualMessage, _isSoft);
},
toBeEmptyArray(toEqualMessage) {
assertions_list_1.toBeEmptyArray(expected, message || toEqualMessage, _isSoft);
type_array_assertions_1.toBeEmptyArray(expected, message || toEqualMessage, _isSoft);
},
toBeNotEmptyArray(toEqualMessage) {
assertions_list_1.toBeNotEmptyArray(expected, message || toEqualMessage, _isSoft);
type_array_assertions_1.toBeNotEmptyArray(expected, message || toEqualMessage, _isSoft);
},
objectIncludesKeys(actual, toEqualMessage) {
assertions_list_1.objectIncludesKeys(expected, actual, message || toEqualMessage, _isSoft);
type_object_assertions_1.objectIncludesKeys(expected, actual, message || toEqualMessage, _isSoft);
},
hasType(expectedType, toEqualMessage) {
assertions_list_1.hasType(expected, expectedType, message || toEqualMessage, _isSoft);
type_common_assertions_1.hasType(expected, expectedType, message || toEqualMessage, _isSoft);
},
stringIncludesSubstring(subString, toEqualMessage) {
type_string_assertions_1.stringIncludesSubstring(expected, subString, message || toEqualMessage, _isSoft);
},
stringNotIncludesSubstring(subString, toEqualMessage) {
type_string_assertions_1.stringNotIncludesSubstring(expected, subString, message || toEqualMessage, _isSoft);
}

@@ -27,0 +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,OAAO,CAAC,CAAC;QACnF,CAAC;QACD,0BAA0B,CAAC,SAAiB,EAAE,cAAe;YAC3D,mDAA0B,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,IAAI,cAAc,EAAE,OAAO,CAAC,CAAC;QACtF,CAAC;KACF,CAAC;AACJ,CAAC;AAED,OAAO,CAAC,IAAI,GAAG,UAAS,QAAQ,EAAE,OAAQ;IACxC,OAAO,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC,CAAC;AAmBF,MAAM,MAAM,GAAG,OAAuB,CAAC;AAGrC,wBAAM"}

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

const utils_1 = require("./utils");
const types_1 = require("./types");
const assertions_utils_1 = require("./assertions.utils");

@@ -12,6 +13,6 @@ function objectIncludesKeys(expected, actual, message = '', _isSoft = false) {

try {
if (!utils_1.isObject(expected)) {
if (!types_1.isObject(expected)) {
throw new TypeError(utils_1.buildTypeErrorMessage('object', expected));
}
if (!utils_1.isArray(actual)) {
if (!types_1.isArray(actual)) {
throw new TypeError(utils_1.buildTypeErrorMessage('array', actual));

@@ -18,0 +19,0 @@ }

@@ -1,1 +0,1 @@

{"version":3,"file":"type.object.assertions.js","sourceRoot":"","sources":["../lib/type.object.assertions.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AACtC,mCAAsF;AACtF,yDAAuE;AAGvE,SAAS,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,EAAE,EAAE,OAAO,GAAG,KAAK;IACzE,IAAI,QAAQ,CAAC;IACb,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,2BAAmB,CAAC,kBAAkB,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxF,IAAI;QACF,IAAI,CAAC,gBAAQ,CAAC,QAAQ,CAAC,EAAE;YACvB,MAAM,IAAI,SAAS,CAAC,6BAAqB,CAAC,QAAQ,EAAE,QAAQ,CAA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qB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;SAChE;QACD,IAAI,CAAC,eAAO,CAAC,MAAM,CAAC,EAAE;YACpB,MAAM,IAAI,SAAS,CAAC,6BAAqB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;SAC7D;QACD,IAAI,QAAQ,EAAE;YACZ,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC7C,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YACvF,IAAI,QAAQ,CAAC,MAAM,EAAE;gBACnB,MAAM,IAAI,uBAAc,CAAC,EAAC,OAAO,EAAE,GAAG,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAC,CAAC,CAAC;aAC5F;SACF;KACF;IAAC,OAAO,KAAK,EAAE;QACd,QAAQ,GAAG,KAAK,CAAC;KAClB;IAED,iCAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACvD,CAAC;AAGC,gDAAkB"}
declare function reformatMessageArguments(argument: any): any;
declare function buildDefaultMessage(condition: any, expected: any, actual?: string): string;
declare function isObject(argument: any): boolean;
declare function isArray(argument: any): boolean;
declare function buildTypeErrorMessage(expectedType: string, argument: any): string;
export { buildDefaultMessage, reformatMessageArguments, isObject, isArray, buildTypeErrorMessage, };
export { buildDefaultMessage, reformatMessageArguments, isObject, buildTypeErrorMessage, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildTypeErrorMessage = exports.isArray = exports.isObject = exports.reformatMessageArguments = exports.buildDefaultMessage = void 0;
exports.buildTypeErrorMessage = exports.isObject = exports.reformatMessageArguments = exports.buildDefaultMessage = void 0;
const types_1 = require("./types");

@@ -24,9 +24,2 @@ function reformatMessageArguments(argument) {

exports.isObject = isObject;
function isArray(argument) {
return Array.isArray(argument);
}
exports.isArray = isArray;
function isNull(argument) {
return Object.prototype.toString.call(argument) === '[object Object]';
}
function buildTypeErrorMessage(expectedType, argument) {

@@ -33,0 +26,0 @@ return `Expected argument should be a ${expectedType}, but argument is ${reformatMessageArguments(argument)}`;

@@ -1,1 +0,1 @@

{"version":3,"file":"utils.js","sourceRoot":"","sources":["../lib/utils.ts"],"names":[],"mappings":";;;AAAA,mCAAiC;AAEjC,SAAS,wBAAwB,CAAC,QAAQ;IACxC,IAAI,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3D,OAAO,QAAQ,CAAC;KACjB;IAED,MAAM,WAAW,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,gBAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAE/H,IAAI,WAAW,CAAC,MAAM,GAAG,EAAE,EAAE;QAC3B,OAAO,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;KAC7D;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAwBC,4DAAwB;AAtB1B,SAAS,mBAAmB,CAAC,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,EAAE;IAC3D,OAAO,eAAe,wBAAwB,CAAC,QAAQ,CAAC,IAAI,SAAS,IAAI,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;AAC9G,CAAC;AAmBC,kDAAmB;AAjBrB,SAAS,QAAQ,CAAC,QAAQ;IACxB,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC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AAM,GAAG,EAAE;IAC3D,OAAO,eAAe,wBAAwB,CAAC,QAAQ,CAAC,IAAI,SAAS,IAAI,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;AAC9G,CAAC;AAYC,kDAAmB;AAVrB,SAAS,QAAQ,CAAC,QAAQ;IACxB,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,iBAAiB,CAAC;AACxE,CAAC;AAUC,4BAAQ;AAPV,SAAS,qBAAqB,CAAC,YAAoB,EAAE,QAAQ;IAC3D,OAAO,iCAAiC,YAAY,qBAAqB,wBAAwB,CAAC,QAAQ,CAAC,EAAE,CAAC;AAChH,CAAC;AAMC,sDAAqB"}
{
"name": "assertior",
"version": "0.0.6",
"version": "0.0.7",
"description": "Assertion library with soft assertions",

@@ -14,3 +14,3 @@ "main": "built/index.js",

"type": "git",
"url": "git+https://github.com/Simple-Automation-Testing/soft-expectation.git"
"url": "git+https://gitnhub.com/Simple-Automation-Testing/soft-expectation.git"
},

@@ -17,0 +17,0 @@ "keywords": [

@@ -66,2 +66,4 @@ # assertior

* [hasType](#hastype)
* [stringNotIncludesSubstring](#stringnotincludesubstring)
* [stringIncludesSubstring](#stringincludesubstring)

@@ -107,2 +109,14 @@ # expect

## stringIncludesSubstring
```js
const {expect} = require('assertior');
expect('foo').stringIncludesSubstring('foo');
```
## stringNotIncludesSubstring
```js
const {expect} = require('assertior');
expect('foo').stringNotIncludesSubstring('foo');
```
# expect.soft

@@ -139,2 +153,14 @@ ## toEqual

expect.soft(null).hasType('null');
```
## stringIncludesSubstring
```js
const {expect} = require('assertior');
expect.soft('foo').stringIncludesSubstring('foo');
```
## stringNotIncludesSubstring
```js
const {expect} = require('assertior');
expect.soft('foo').stringNotIncludesSubstring('foo');
```
export * from './type.common.assertions';
export * from './type.array.assertions';
export * from './type.object.assertions';
interface IStepDeclarator {
(stepAssertionName: string, error: any, expected: any, actual: any): any;
}
declare function initStepDeclarator(stepDeclarator: IStepDeclarator): void;
export { initStepDeclarator };
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.initStepDeclarator = void 0;
const assertions_utils_1 = require("./assertions.utils");
__exportStar(require("./type.common.assertions"), exports);
__exportStar(require("./type.array.assertions"), exports);
__exportStar(require("./type.object.assertions"), exports);
function initStepDeclarator(stepDeclarator) {
assertions_utils_1._initStepDeclarator(stepDeclarator);
}
exports.initStepDeclarator = initStepDeclarator;
//# sourceMappingURL=assertions.list.js.map
{"version":3,"file":"assertions.list.js","sourceRoot":"","sources":["../lib/assertions.list.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,yDAAuD;AAEvD,2DAAyC;AACzC,0DAAwC;AACxC,2DAAyC;AAOzC,SAAS,kBAAkB,CAAC,cAA+B;IACzD,sCAAmB,CAAC,cAAc,CAAC,CAAC;AACtC,CAAC;AAGC,gDAAkB"}