UNPKG

nba

Version:

JavaScript client for the NBA's stats API

19 lines (15 loc) 362 B
var DELAY = 10; function jsonStub (url, settings) { return new Promise(function (resolve) { setTimeout(() => resolve(), DELAY); }); } function jsonFailStub (url, settings, callback) { return new Promise(function (__, reject) { setTimeout(() => reject(new Error()), DELAY) }); } module.exports = { success: jsonStub, fail: jsonFailStub, };