mochatester-a2dev

0.1.3 • Public • Published

MochaTester

usage

var tester = require("mochatester-a2dev")
var values = tester.testValues() // a lot values for test
// { undefined:
//    { value: undefined,
//      type: 'undefined',
//      typeString: '[object Undefined]',
//      canNumber: false },
//   undefinedArg:
//    { value: undefined,
//      type: 'undefined',
//      typeString: '[object Undefined]',
//      canNumber: false },
//   null:
//    { value: null,
//      type: 'object',
//      typeString: '[object Null]',
//      canNumber: false }
// ...
// }

methods

testValues

get test values

tester.testValues // test values

existsKeyAssert (key, data) boolean

check exists key in data. and not exists key return false

tester.existsKeyAssert (key, data)

isErrorWithDone (done, err) boolean

check exists err.

tester.isErrorWithDone (done, err)

Readme

Keywords

none

Package Sidebar

Install

npm i mochatester-a2dev

Weekly Downloads

0

Version

0.1.3

License

ISC

Unpacked Size

5.95 kB

Total Files

4

Last publish

Collaborators

  • awisu2