UNPKG

cc.fovea.cordova.purchase

Version:

Cordova Purchase plugin for iOS, Android, Windows (AppStore, Play, UWP)

23 lines (18 loc) 539 B
(function(){ var timeFactor = 1; var pSetTimeout = global.setTimeout; global.setTimeout = function(fn, delay) { pSetTimeout(fn, delay / timeFactor); }; exports.resetTest = function() { var store = require("../tmp/store-test"); store._queries.callbacks.byQuery = {}; store.ready.reset(); store.products.reset(); store.error.callbacks.reset(); timeFactor = 1; }; exports.setTimeoutFactor = function(value) { timeFactor = value; }; })();