@unmock/jaymock
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "@unmock/jaymock", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Minimal fake JSON test data generator", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"coverage:upload": "nyc report --reporter=lcov && codecov", | ||
"coverage:check": "nyc report && nyc check-coverage --lines 90 --functions 90 --branches 85" | ||
"coverage:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100" | ||
}, | ||
@@ -13,0 +13,0 @@ "files": [ |
@@ -98,3 +98,3 @@ # jaymock | ||
Each object's value can be one of [`Faker.js`'s API methods](https://github.com/marak/Faker.js/#api-methods), in the format `'{topic}.{subtopic}'` (e.g. `'name.firstName'`) or a custom method, defined using the `.extend` function, in the format `'{function_name}'` (e.g. `'chance.ssn'` will call `chance.ssn()`). | ||
Each object's value can be one of [`Faker.js`'s API methods](https://github.com/marak/Faker.js/#api-methods), in the format `'{topic}.{subtopic}'` (e.g. `'name.firstName'`) or a custom method, defined using the `.extend` function, in the format `'{function_name}'` or `{function_name}.{nested_function_name}` (e.g. `'foo'` will call `foo()` and `'foo.bar'` will call `foo.bar()`). | ||
@@ -101,0 +101,0 @@ A fake value can be generated `n` times, into an array of `n` values, by including `|n` at the end of the individual object's method name (e.g. `'name.firstName|5'` will generate an array, populated with `5` fake first names). This also works with custom functions, accordingly. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11930