Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
26 lines
427 B
JavaScript
Executable file
26 lines
427 B
JavaScript
Executable file
|
|
'use strict';
|
|
/* exported MockDownloadHelper */
|
|
var MockDownloadHelper = {
|
|
open: function() {
|
|
this.methodCalled = 'open';
|
|
return {};
|
|
},
|
|
|
|
remove: function() {
|
|
this.methodCalled = 'remove';
|
|
return {};
|
|
},
|
|
|
|
bytes: 1000,
|
|
|
|
getFreeSpace: function(cb) {
|
|
this.methodCalled = 'getFreeSpace';
|
|
cb(this.bytes);
|
|
},
|
|
|
|
mTeardown: function() {
|
|
this.bytes = 1000;
|
|
this.methodCalled = null;
|
|
}
|
|
};
|