Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
25 lines
407 B
JavaScript
Executable file
25 lines
407 B
JavaScript
Executable file
/* global Promise */
|
|
/* exported MockBasket */
|
|
|
|
'use strict';
|
|
|
|
var MockBasket = {
|
|
_err: null,
|
|
_data: {
|
|
'status': 'ok'
|
|
},
|
|
_dataStore: null,
|
|
|
|
send: function(data, callback) {
|
|
if (callback) {
|
|
callback(this._err, this._data);
|
|
}
|
|
},
|
|
|
|
getDataStore: function() {
|
|
var self = this;
|
|
return new Promise(function (resolve, reject) {
|
|
resolve(self._dataStore);
|
|
});
|
|
}
|
|
};
|