1.9.70 • Published 11 months ago

@hishprorg/voluptatibus-natus-cupiditate v1.9.70

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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

11 months ago

1.8.70

11 months ago

1.8.69

11 months ago

1.8.68

11 months ago

1.8.67

11 months ago

1.8.66

11 months ago

1.8.65

11 months ago

1.7.65

11 months ago

1.7.64

11 months ago

1.7.63

11 months ago

1.7.62

11 months ago

1.7.61

11 months ago

1.7.60

11 months ago

1.7.59

11 months ago

1.7.58

11 months ago

1.7.57

11 months ago

1.7.56

11 months ago

1.7.55

11 months ago

1.6.55

11 months ago

1.6.54

11 months ago

1.6.53

12 months ago

1.5.53

12 months ago

1.5.52

12 months ago

1.5.51

12 months ago

1.5.50

12 months ago

1.5.49

12 months ago

1.5.48

12 months ago

1.5.47

12 months ago

1.5.46

12 months ago

1.5.45

12 months ago

1.5.44

12 months ago

1.5.43

12 months ago

1.5.42

12 months ago

1.5.41

12 months ago

1.5.40

12 months ago

1.4.40

12 months ago

1.4.39

12 months ago

1.4.38

12 months ago

1.4.37

12 months ago

1.4.36

12 months 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