1.9.70 • Published 1 year ago

@hishprorg/voluptatibus-natus-cupiditate v1.9.70

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishprorg/voluptatibus-natus-cupiditate

Array quantifier assertions for Chai assertion library.

main workflow Coverage Status Maintainability node code style Types License Status

Install

npm install --save-dev chai @hishprorg/voluptatibus-natus-cupiditate

Usage

There are three assertions available, applicable to arrays.

  • containAll -- Asserts that all array items are true in respect to a predicate.
  • containOne -- Asserts that at least one array item is true in respect to a predicate.
  • containExactlyOne -- Asserts that exactly one array item is true in respect to a predicate.

A quick example:

const chai = require('chai');
const chaiQuantifiers = require('@hishprorg/voluptatibus-natus-cupiditate');

chai.use(chaiQuantifiers);

const { expect } = chai;

describe('@hishprorg/voluptatibus-natus-cupiditate', () => {
  it('containAll should be true if all items are true', () => {
    expect([0, 1, 2, 3]).to.containAll(item => item < 4);
  });
  it('containOne should be true if at least one item is true', () => {
    expect([0, 1, 2, 3]).to.containOne(item => item >= 2);
  });
  it('containExactlyOne should be true if exactly one item is true', () => {
    expect([0, 1, 2, 3]).to.containExactlyOne(item => item === 2);
  });
});

This module also includes types for TypeScript.

installtoolsaccessorsqsFunction.prototype.nameutilitylazyclass-validatorworkerstylesexecutereact posespringautoprefixerarraybufferbyteLength.envglobglobalThisfull-widthapolloschemaletstylesheetperformancepurepatchwarninges-shimsproxymobileString.prototype.matchAllTypeScriptsortedidlequotenested cssArrayBuffer#slicecontainsoptiontslibfixed-widthjQuerytoArrayhashsyntaxfigletprivate dataes2016iefunctionsdynamodbwaitarktypeestreeES2020handlerssignalsisless mixinsartmappersistentinspectequaldeepcliloadbalancingregexpnumbereventsSymbol.toStringTagimportexportsigtermjestimmerirqbrowserslistform-validationoncedayjsfast-deep-clonecompilerexpressionstructuredClone6to5es5deepcopyindicatorpreserve-symlinkstesttypedarrayflagjoigesturestypereadablestreamramdaerror-handlingjapanesetoStringTagelectronhas-ownsyntaxerrorenderES6circularpathmapreducenpmignoreoperating-systemstreamswafRegExp.prototype.flagslinkerrorfluxdateviewtoolkitESnextapivpcbinspecspeeduploadjwtarraysxhrmrufunction.lengthcolorremovepropertiesconstwindowsECMAScript 6yamlenumerableObservableses2015ECMAScript 2021call-bindeventDispatchermetadatareact-componentInt8Arrayreduxi18nSystem.globalnodejsarraypostcss-pluginhttpstylingflattensignedsimpledbpolyfillCSSStyleDeclarationprettyregularec2logrecursivegradients css3keyswindowsigintSettrimStarttacitdataefficienturlserializetranspilewhatwgredacttc39helpersfsargumentfast-copynameArray.prototype.flatcommandless cssES5livehottrimLefttraversebufferignoreFloat32Arrayiamthreecss nestingtypeseverybinaries[[Prototype]]curriedgetterextendutilsfile systemreducercallboundselffromObservablelinuxbcrypttesterprocessgroupBycoresesUnderscoreflatMapArray.prototype.findLastIndexkinesisextraawesomesaucegetintrinsicvariablestoSortedredux-toolkitCSSsubprocessbabelcallbackscheme-validationcryptochromiumYAMLamazonesdataViewhasOwnenvlistenersroutingjsdiffdom-testing-librarytexttouchserializationtsfast-clonerfc4122es7pnpm9shelles-abstractloggingES2015xtermlrubusyhardlinkscolourStreamsObjectsymlinksObject.valuesdescriptorssharedarraybufferescapeshamwhichformattingdefinePropertyTypedArrayenvironmentqsObject.fromEntriescomputed-typesJSON-SchemaES7importArrayBuffer.prototype.sliceUint16ArrayprotobufparserzxBigUint64Arrayinternal slotmatchesentriesslotInt32ArrayutilitiesoptimizerES2022react animationcloudsearchstyleguidefullvalueidentifiersconsoleobjECMAScript 2022ReactiveXweaksetserializer
1.9.70

1 year ago

1.8.70

1 year ago

1.8.69

1 year ago

1.8.68

1 year ago

1.8.67

1 year ago

1.8.66

1 year ago

1.8.65

1 year ago

1.7.65

1 year ago

1.7.64

1 year ago

1.7.63

1 year ago

1.7.62

1 year ago

1.7.61

1 year ago

1.7.60

1 year ago

1.7.59

1 year ago

1.7.58

1 year ago

1.7.57

1 year ago

1.7.56

1 year ago

1.7.55

1 year ago

1.6.55

1 year ago

1.6.54

1 year ago

1.6.53

1 year ago

1.5.53

1 year ago

1.5.52

1 year ago

1.5.51

1 year ago

1.5.50

1 year ago

1.5.49

1 year ago

1.5.48

1 year ago

1.5.47

1 year ago

1.5.46

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.4.40

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.4.35

1 year ago

1.4.34

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago