1.0.7 • Published 2 years ago

assertrc v1.0.7

Weekly downloads
28
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

assertrc (assert real challange)

The assertrc is an alternative shorthanded assert collection.

##init

const assertManager = new (require('assertrc')).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
istanceofInstance of
istanceInstance of
isInstance of
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
r==Result Equal
reqResult Equal
reResult Equal
resultequalResult Equal
resultequaleResult Equal
r!==Result Not Equal
rneqResult Not Equal
rneResult Not Equal
resultnotequalResult Not Equal
resultnotequaleResult Not Equal
r===Result Equal Type
reqtResult Equal Type
retResult Equal Type
rqtResult Equal Type
resultequaltypeResult Equal Type
resultequaletypeResult Equal Type
r!===Result Not Equal Type
rneqtResult Not Equal Type
rnetResult Not Equal Type
rnqtResult Not Equal Type
resultnotequaltypeResult Not Equal Type
resultnotequaletypeResult Not Equal Type
rj==Result Equal Json
rjeqResult Equal Json
rjeResult Equal Json
resultjsonequalResult Equal Json
resultjsonequaleResult Equal Json
r==jResult Equal Json
reqjResult Equal Json
rejResult Equal Json
resultequaljsonResult Equal Json
resultequalejsonResult Equal Json
1.0.4-rc6

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4-rc5

3 years ago

1.0.4-rc4

3 years ago

1.0.4-rc3

3 years ago

1.0.4-rc2

3 years ago

1.0.2-rc2

3 years ago

1.0.2-rc1

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.9.9-beta1

4 years ago

0.9.9-alpha1

4 years ago

0.9.9-alphai1

4 years ago

0.9.9-alpha

4 years ago