mochatester-a2dev
v0.1.3
Published
# usage
Downloads
2
Readme
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)