machop
M
ultiA
ssertiveCH
aracterO
bjectP
roducer
A mocking library.
Installation
npm i machop
Usage
const machop = require('machop');
const options = {};
const stringmock = machop('string', {});
const numberMock = machop('number');
Options
Each data type has custom possible options. See option definitions for details.
Data types
Currently supported types are:
string
includeEdgeCases
- which will return ''includeInvalidOptions
- which will return undefined
number
includeEdgeCases
- which will return 0includeInvalidOptions
- which will return NaN
boolean
includeInvalidOptions
- which will randomly return a non-boolean