@dannybster/coco-the-bear-test-utils

0.0.4 • Public • Published

coco-the-bear-test-utils

A collection of utility functions to help when creating tests.

Version 0.0.4

  • Added a noop function that does nothing.

Version 0.0.3

  • Added a createMockResponse function for creating a response object that can be used to assert that res.status and res.json are called with the correct parameters.

Version 0.0.2

  • Fixed a bug where module exports was being overwritten by the last export. The intention was to have each function in index.js exported by name e.g. module.exports.doSomething = doSomething;

Version 0.0.1

  • Added an assertOnce function to assert that wraps another function and throws an error if it is called more than once.
  • Added a convenience function that just throws a not implented error.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    2
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @dannybster/coco-the-bear-test-utils

Weekly Downloads

2

Version

0.0.4

License

ISC

Last publish

Collaborators

  • dannybster