Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
23 lines
471 B
JavaScript
Executable file
23 lines
471 B
JavaScript
Executable file
/*exported MockDrafts,
|
|
MockDraft
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
var MockDrafts = {
|
|
init: () => {},
|
|
add: function() { return this; },
|
|
delete: function() { return this; },
|
|
byThreadId: () => null,
|
|
byDraftId: function() {},
|
|
clear: function() {},
|
|
store: () => Promise.resolve(),
|
|
request: () => Promise.resolve(),
|
|
getAll: () => [],
|
|
getAllThreadless: () => [],
|
|
on: () => {}
|
|
};
|
|
|
|
function MockDraft(draft) {
|
|
Object.assign(this, { id: 'draftId' }, draft);
|
|
}
|