Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
18 lines
326 B
JavaScript
Executable file
18 lines
326 B
JavaScript
Executable file
/* exported MockCostControl */
|
|
'use strict';
|
|
|
|
var MockCostControl = function(config) {
|
|
|
|
config = config || {};
|
|
|
|
var fakeCostControlInstance = config;
|
|
|
|
return {
|
|
getInstance: function(callback) {
|
|
callback(fakeCostControlInstance);
|
|
},
|
|
reset: function() {
|
|
fakeCostControlInstance = {};
|
|
}
|
|
};
|
|
};
|