UNPKG
mock-variable
Version:
latest (0.0.2)
0.0.2
0.0.1
Generate fake / mock structured variable.
github.com/hustcc/mock-variable
hustcc/mock-variable
mock-variable
/
src
/
helper.js
14 lines
(10 loc)
•
185 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** * Created by hustcc. * Contract: i
@hust
.cc */
function
mockerValue
(
mocker
) {
return
mocker.
mock
? mocker.
mock
() : mocker; }
module
.
exports
= {
mockerValue
: mockerValue };