@tapjs/asserts
Tap plugin that adds a heaping pile of assertion methods. Pretty much all of the "test" methods other than `t.pass`, `t.fail`, and [snapshot methods](https://tapjs.github.io/tapjs/modules/_tapjs_snapshot.html) come from this plugin.
Last updated 5 months ago by isaacs .
BlueOak-1.0.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @tapjs/asserts 
SYNC missed versions from official npm registry.

@tapjs/asserts

Tap plugin that adds a heaping pile of assertion methods. Pretty much all of the "test" methods other than t.pass, t.fail, and snapshot methods come from this plugin.

USAGE

This plugin is installed with tap by default. If you had previously removed it, you can tap plugin add @tapjs/asserts to bring it back.

compareOptions

This plugin adds the compareOptions option to the set of fields that can be passed to child tests. You can also set t.compareOptions after the fact.

compareOptions lets you pass options to tcompare to specify the formatting style, diff context lines, and so on.

It can contain the following fields:

  • sort - boolean, sort items alphabetically by key.
  • bufferChunkSize - number of bytes to show on each line when printing buffers, default 32
  • includeEnumerable - boolean, include any and all enumerable properties, including those inherited on the prototype chain. By default, only own properties are shown.
  • includeGetters - boolean, include getter properties.
  • diffContext - how many lines of context to print around changes in diffs, default 10. Note that the test reporter might use more or less than this value when displaying pretty colored diffs.

Assertion Methods

All of the assertion methods are documented on the Assertions class. When this plugin is loaded, these are all present on Test objects.

Current Tags

  • 4.0.0                                ...           latest (4 months ago)
  • 1.0.0                                ...           pre (a year ago)

68 Versions

  • 4.0.0                                ...           4 months ago
  • 3.0.3                                ...           5 months ago
  • 3.0.2                                ...           5 months ago
  • 3.0.1                                ...           5 months ago
  • 3.0.0                                ...           5 months ago
  • 2.0.8                                ...           5 months ago
  • 2.0.7                                ...           5 months ago
  • 2.0.6                                ...           5 months ago
  • 2.0.5                                ...           5 months ago
  • 2.0.4                                ...           5 months ago
  • 2.0.3                                ...           5 months ago
  • 2.0.2                                ...           5 months ago
  • 2.0.1                                ...           6 months ago
  • 2.0.0                                ...           6 months ago
  • 1.2.0                                ...           6 months ago
  • 1.1.21                                ...           6 months ago
  • 1.1.20                                ...           8 months ago
  • 1.1.19                                ...           8 months ago
  • 1.1.18                                ...           10 months ago
  • 1.1.17                                ...           a year ago
  • 1.1.16                                ...           a year ago
  • 1.1.15                                ...           a year ago
  • 1.1.14                                ...           a year ago
  • 1.1.13                                ...           a year ago
  • 1.1.12                                ...           a year ago
  • 1.1.11                                ...           a year ago
  • 1.1.10                                ...           a year ago
  • 1.1.9                                ...           a year ago
  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.0.0-22                                ...           a year ago
  • 0.0.0-21                                ...           a year ago
  • 0.0.0-20                                ...           a year ago
  • 0.0.0-19                                ...           a year ago
  • 0.0.0-18                                ...           a year ago
  • 0.0.0-17                                ...           a year ago
  • 0.0.0-16                                ...           a year ago
  • 0.0.0-15                                ...           a year ago
  • 0.0.0-14                                ...           a year ago
  • 0.0.0-13                                ...           a year ago
  • 0.0.0-12                                ...           a year ago
  • 0.0.0-11                                ...           a year ago
  • 0.0.0-10                                ...           a year ago
  • 0.0.0-9                                ...           a year ago
  • 0.0.0-8                                ...           a year ago
  • 0.0.0-7                                ...           a year ago
  • 0.0.0-6                                ...           a year ago
  • 0.0.0-5                                ...           a year ago
  • 0.0.0-4                                ...           a year ago
  • 0.0.0-3                                ...           a year ago
  • 0.0.0-2                                ...           a year ago
  • 0.0.0-1                                ...           a year ago
  • 0.0.0-0                                ...           a year ago
Maintainers (2)
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE