Blame view
mock/data.js
305 Bytes
93a68cfa1
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
/** * JS data file * * @url /test * * Export data by using the JS file directly. */ module.exports = { 'code': function () { // simulation error code, 1/10 probability of error code 1. return Math.random() < 0.1 ? 1 : 0; }, 'list|5-10': [ { 'title': '@title', 'link': '@url' } ] }; |