0.0.1 • Published 1 year ago

consoletablerc v0.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
1 year ago

Build Status

assertrc (assert real challange)

The assertrc is an alternative shorthanded assert collection.

##init

const assertManager = new (require('./index.js')).base();

simple test

assertManager.check(
    '1', // value
    `===`, // rule
    '1' // sample
);

simple test upload

assertManager.tests({
    'id':'value',
    'id2':'value2'
});

supported operators

tacDescription
==Equal
eqEqual
eEqual
equalEqual
equaleEqual
!==Not equal
neqNot equal
neNot equal
notequalNot equal
notequaleNot equal
===Equal with type
eqtEqual with type
etEqual with type
qtEqual with type
equaltypeEqual with type
equaletypeEqual with type
!===Not equal with type
neqtNot equal with type
netNot equal with type
nqtNot equal with type
notequaltypeNot equal with type
notequaletypeNot equal with type
j==Deep Equal
jeqDeep Equal
jeDeep Equal
jsonequalDeep Equal
jsonequaleDeep Equal
==jDeep Equal
eqjDeep Equal
ejDeep Equal
equaljsonDeep Equal
equalejsonDeep Equal
>Greater
greaterGreater
moreGreater
higherGreater
biggerGreater
bigerGreater
largerGreater
<Less
lessLess
lowerLess
smallerLess
smalerLess
lengthLength
v==Value equal
veqValue equal
veValue equal
valueequalValue equal
valueequaleValue equal
v!==Value not equal
vneqValue not equal
vneValue not equal
valuenotequalValue not equal
valuenotequaleValue not equal
v===Value equal with type
veqtValue equal with type
vetValue equal with type
vqtValue equal with type
valueequaltypeValue equal with type
valueequaletypeValue not equal with type
v!===Value not equal with type
vneqtValue not equal with type
vnetValue not equal with type
vnqtValue not equal with type
valuenotequaltypeValue not equal with type
valuenotequaletypeValue not equal with type
vj==Value deep equal
vjeqValue deep equal
vjeValue deep equal
valuejsonequalValue deep equal
valuejsonequaleValue deep equal
v==jValue deep equal
veqjValue deep equal
vejValue deep equal
valueequaljsonValue deep equal
valueequalejsonValue deep equal
0.0.1

1 year ago