[ui] DaySentence: Her folded petal, the words and their source; the library bundled after validation
This commit is contained in:
@@ -28,7 +28,10 @@ function wiring(over: Partial<RoseWiring> & { log?: CareEvent[]; at?: number } =
|
||||
now: () => at,
|
||||
pastKeys: async () => [],
|
||||
exportRose: async (key) => ({ format: 'rosea-rose', version: 1, keys: [key], events: [...(over.log ?? []), ...appended] }),
|
||||
importRose: async () => ({ added: 0 }),
|
||||
importRose: async () => ({ added: 0, petals: 0 }),
|
||||
sentences: [],
|
||||
loadOpened: async () => [],
|
||||
appendOpened: async () => undefined,
|
||||
saveFile: (name, text) => {
|
||||
saved.push({ name, text });
|
||||
},
|
||||
@@ -203,7 +206,7 @@ describe('keep her safe (keep-her-safe.md)', () => {
|
||||
importRose: async (file) => {
|
||||
expect(file).toMatchObject({ keys: [OLD] });
|
||||
restored = true;
|
||||
return { added: 1 };
|
||||
return { added: 1, petals: 0 };
|
||||
}
|
||||
});
|
||||
render(Rose, { wiring: w, timeZone: ZONE });
|
||||
|
||||
Reference in New Issue
Block a user