2.7.88 • Published 10 months ago

@taktikorg/ut-saepe v2.7.88

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

For more information or to download plugins, view the documentation.

What is Chai?

Chai is an assertion library, similar to Node's built-in assert. It makes testing much easier by giving you lots of assertions you can run against your code.

Installation

Node.js

@taktikorg/ut-saepe is available on npm. To install it, type:

$ npm install --save-dev @taktikorg/ut-saepe

Browsers

You can also use it within the browser; install via npm and use the @taktikorg/ut-saepe.js file found within the download. For example:

<script src="./node_modules/@taktikorg/ut-saepe/@taktikorg/ut-saepe.js"></script>

Usage

Import the library in your code, and then pick one of the styles you'd like to use - either assert, expect or should:

import { assert } from '@taktikorg/ut-saepe';  // Using Assert style
import { expect } from '@taktikorg/ut-saepe';  // Using Expect style
import { should } from '@taktikorg/ut-saepe';  // Using Should style

Register the @taktikorg/ut-saepe testing style globally

import '@taktikorg/ut-saepe/register-assert';  // Using Assert style
import '@taktikorg/ut-saepe/register-expect';  // Using Expect style
import '@taktikorg/ut-saepe/register-should';  // Using Should style

Import assertion styles as local variables

import { assert } from '@taktikorg/ut-saepe';  // Using Assert style
import { expect } from '@taktikorg/ut-saepe';  // Using Expect style
import { should } from '@taktikorg/ut-saepe';  // Using Should style
should();  // Modifies `Object.prototype`

import { expect, use } from '@taktikorg/ut-saepe';  // Creates local variables `expect` and `use`; useful for plugin use

Usage with Mocha

mocha spec.js --require @taktikorg/ut-saepe/register-assert.js  # Using Assert style
mocha spec.js --require @taktikorg/ut-saepe/register-expect.js  # Using Expect style
mocha spec.js --require @taktikorg/ut-saepe/register-should.js  # Using Should style

Read more about these styles in our docs.

Plugins

Chai offers a robust Plugin architecture for extending Chai's assertions and interfaces.

  • Need a plugin? View the official plugin list.
  • Want to build a plugin? Read the plugin api documentation.
  • Have a plugin and want it listed? Simply add the following keywords to your package.json:
    • @taktikorg/ut-saepe-plugin
    • browser if your plugin works in the browser as well as Node.js
    • browser-only if your plugin does not work with Node.js

Related Projects

Contributing

Thank you very much for considering to contribute!

Please make sure you follow our Code Of Conduct and we also strongly recommend reading our Contributing Guide.

Here are a few issues other contributors frequently ran into when opening pull requests:

  • Please do not commit changes to the @taktikorg/ut-saepe.js build. We do it once per release.
  • Before pushing your commits, please make sure you rebase them.

Contributors

Please see the full Contributors Graph for our list of contributors.

Core Contributors

Feel free to reach out to any of the core contributors with your questions or concerns. We will do our best to respond in a timely manner.

Jake Luer Veselin Todorov Keith Cirkel Lucas Fernandes da Costa Grant Snodgrass

WeakSettypedarrayES2015reduxfullwidthfullFloat32ArrayglacierwaitObject.assignvaluesmruselfefficientreadObject.entriesbootstrap csstypedsomeES2017mockgradients csses2018binaryArray.prototype.findLastIndexyamlTypeScriptimmerECMAScript 2019typeofcurriedcorearraybufferminimalextendutil.inspectdeleteprototypeECMAScript 2020bufferCSSStyleDeclarationpostcssexecsigtermescapeunicodees7es2017nativettyajves8rulescirculargetPrototypeOfreducerdescriptorselblocationdefinehttpslibphonenumberrouteRFC-6455modulemergeroutingoperating-systemfigletutilitywafsuperstructvisualeslintpluginarktypezeroresolvereact posefinddatetoSortedairbnbzxenumerablejwtargumenttoStringTagargspreserve-symlinksasyncdragbyteLengthgroupbindforEachassertionsidemockingcjkes-abstractArray.prototype.findLastcolorsECMAScript 7Float64ArrayreduceexecfilepipeES8executeIteratorsymbolendpointpasswordes5asciistylesheetmobilemkdirpruntimeec2clieslintconfigconsolequeueMicrotaskmkdiriedeterministicECMAScript 2022lengthinternal slotprotohasOwnpreprocessorvalidatortostringtagless mixinstermfast-deep-copymakeletfunctionsReflect.getPrototypeOffnmatchoptiontyped arrayrgbredactoutputPromiseserializertc39streamsmapreduceStreamsflatMapdirectoryreal-timedynamodbECMAScript 2016agentcensorpruneassertvpctoobjectprotobufregular expressioncore-jsredirectES2022matchescloudsearchMapcollection.es6chromiumnested cssmulti-packagepinoECMAScript 2015dom-testing-libraryartObject.valuessameValueZerojsxECMAScript 5css variableurlmake dirgetOwnPropertyDescriptorqueuenodejscall-bindURLSearchParamsremovecommandobjectecmascriptpnpm9hasqsglobregexprivatetrimEndmonorepoES2021less compilersettingsansiomitjapanesechannelutilitiespopmotionwritablegloballiveformatboundUint16Arraydeep-cloneSystem.globalteststatelesssymlinkintrinsicString.prototype.trimtoArrayservicetypesafesimpledbthreemixinscss lesstslibObject.ischaractercolumncommandercreateweakmapidleECMAScript 2023storagegatewaylazyespreeglobal this valueArray.prototype.containsjavascriptglobalThisnegativetoolkitstylescompareentriessharedarraybufferfast-copyperformantvarsjesttesterjsdiffES7lruhookformflatworkspace:*spinnerinputInt8Arrayrobusthas-ownequaljson-schema-validationswf.gitignorevalidcollectionstringJSON-SchemaESjQueryoptimistauthReactiveExtensionsimmutablecopystatusexpressES3progressconstasterisksinferencetypeerrorECMAScript 2017exit-codeECMAScript 2021packagesArray.prototype.flatteneffect-tsinternalcss nestingtrimStartschemanamesreplaygroupBycallboundtranspilersliceeschromeautoprefixerspawnvalidationUnderscoreRxJSloggerfilebingetforkisConcatSpreadablegdprstructuredCloneloadingchaipyyamlserverscheme-validationemitwarningsyntaxerrorajaxmkdirsarrayseventDispatcherl10nBigUint64ArraymapdiffignoreapollonumberregexpcolumnsposefindLastIndexeslintvalueclassnamesObject.fromEntriesdeepcopycompile lesscomputed-typesgetteryupcloudfrontPushjshintrecursivetypeequalityglobal objectproxycallbackdatababelArrayBuffer#slicees6safeeslint-plugintelephoneslotJSONhookstsstringifyprivate dataformattingfast-deep-clonedeepfront-endconsumetypanionreact-hooksenvironmentsArrayBuffer.prototype.sliceoffsetutils3dlintjsongesturescheckdescriptionjson-schemaYAMLfastifyObjectqueryhigher-orderexpression.envwindowfast256regular-expressiondefinePropertyRegExp.prototype.flagsless.jsStyleSheetworkera11yes2015noperdscommand-linedotenvonce_.extendpicomatchObservablesuninstallbinariesbannerramdaES2019vestownpredictablecss-in-jsbyteserializationstartermomentlistenersmanagerReactiveXdependency managerjson-schema-validatorprotocol-buffersreact-componentreadablestreamweaksetbeanstalkpersistentestreeredux-toolkitreuseeventsES6sigintsuperagentisamazonharmonybabel-corefull-widthmovetraverseobjinterruptstypedarrayses-shim APIcolorcallObservablefunction.lengthtddbrowserkeylesscssStreamreact animationform-validationlanguageES2016matchwalkdependenciesArray.prototype.flatMapenvironmentnpmCSScall-boundelasticacheBigInt64Arrayenvsnsio-tsfsconfigcryptodataView$.extendparsesharedtypeslograngeerrorarrayhandlersrandompushObject.definePropertyfindLastkeysquerystringsyntaxtacitsortfixed-widthconcatMapSetECMAScript 6streamebsincludesWebSocketscolourphoneschemewgetsequencetransportassertsperformanceexittrim-0styleclonehelperaccessibilityzodprop[[Prototype]]formswidthfetchinstalllastconcatdeepcloneaccessorparsersetUint32ArrayhandlerpromisetranspileclassesdomreadablekoreanmatchAllgenericsponyfillArray.prototype.flatfluxtouchfile systemcompilerchildECMAScripti18nloadbalancingdirlinknamepropertyautoscalingxhrcurliterationless csshelpersnegative zerodatastructurefunctionalSymbolES2018ECMAScript 3stringifieranimationclassnamenodes3es2016URLES2023rapidclientplugintrimRightbyteOffsetconfigurabletoolsiteratevarcertificatesjsdomprocesshashTypedArrayES5ArrayBuffercachevariables in cssflagESnextprefixsignedcoercibleArraycloudformationastback-enddayjscloudwatchtestingpackage managerRxpolyfillroute53Int16ArraylocalvieweventEmittermetadataWebSocket@@toStringTagfpcontainssignalsacornshebangwhatwgsubprocessmoduleslessfpsencryptionspeedxtermlockfileWeakMapcrypt
2.7.88

10 months ago

2.7.87

10 months ago

2.7.86

10 months ago

2.7.85

10 months ago

2.7.84

10 months ago

2.7.83

10 months ago

2.7.82

10 months ago

2.7.81

11 months ago

2.7.80

11 months ago

2.7.79

11 months ago

2.7.78

11 months ago

2.7.77

11 months ago

2.7.76

11 months ago

2.7.75

11 months ago

2.7.74

11 months ago

2.6.74

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

2.6.67

11 months ago

2.6.66

11 months ago

2.6.65

11 months ago

2.6.64

11 months ago

2.6.63

11 months ago

2.6.62

11 months ago

2.6.61

11 months ago

2.6.60

11 months ago

2.6.59

11 months ago

2.6.58

11 months ago

2.6.57

11 months ago

2.5.57

11 months ago

2.5.56

11 months ago

2.5.55

11 months ago

2.5.54

11 months ago

2.5.53

12 months ago

2.4.53

12 months ago

2.4.52

12 months ago

2.4.51

12 months ago

2.4.50

12 months ago

2.4.49

12 months ago

2.4.48

12 months ago

2.4.47

12 months ago

2.4.46

12 months ago

2.4.45

12 months ago

2.4.44

12 months ago

2.4.43

12 months ago

2.4.42

12 months ago

2.4.41

12 months ago

2.3.41

12 months ago

2.3.40

12 months ago

2.3.39

12 months ago

2.3.38

12 months ago

2.3.37

12 months ago

2.3.36

12 months ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

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.1.7

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.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago