VulpesOS/gaia/apps/sms/services/test/unit/mock_drafts.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

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);
}