2.0.1 • Published 6 years ago

machop v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

machop

  • Multi
  • Assertive
  • CHaracter
  • Object
  • Producer

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 0
    • includeInvalidOptions - which will return NaN
  • boolean
    • includeInvalidOptions - which will randomly return a non-boolean